]> 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)
commitfe19b26d5ce0eac13bec4c365f5280d6980f22cf
tree0caa6782bf5c84ed852c9d1b637b8f994bb74cb1
parent59ab24625d9ba90f82e5121b6f1e90cdcfa7a0df
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