net: dsa: mv88e6xxx: add default case to switch
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 12 May 2017 03:11:29 +0000 (22:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2017 16:14:40 +0000 (12:14 -0400)
commit9fc3e4dc67fde953fd26adb3cea8f92597810b64
tree0caa6782bf5c84ed852c9d1b637b8f994bb74cb1
parentdbc2b5e9a09e9a6664679a667ff81cff6e5f2641
net: dsa: mv88e6xxx: add default case to switch

Add default case to switch in order to avoid any chance of using an
uninitialized variable _low_, in case s->type does not match any of
the listed case values.

Addresses-Coverity-ID: 1398130
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c