]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce6a0d7a4ba57cd9dd4749a7062b12c3a70d33d2
tree0caa6782bf5c84ed852c9d1b637b8f994bb74cb1
parent66faea169b904447d922e0f0820957c65bb4da62
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