]> git.baikalelectronics.ru Git - kernel.git/commit
net: 3c509: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 23 Jan 2019 07:29:55 +0000 (01:29 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 17:06:36 +0000 (09:06 -0800)
commit8344f78e44e5e88b03cc0332d0967b35bdb65c14
treeef8a2c3d14ff69c5d72d56c945cb63881172b738
parentac7d74baac6b69e183409c6a8edbffac5735e9da
net: 3c509: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

This patch fixes the following warnings:

drivers/net/ethernet/3com/3c509.c:1265:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
drivers/net/ethernet/3com/3c509.c:1271:8: warning: this statement may fall through [-Wimplicit-fallthrough=]

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enabling
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c509.c