net: dsa: fix 'increment on 0' warning