projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75d28f4
)
net: 3com: 3c574_cs: mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Thu, 9 Nov 2017 03:49:33 +0000
(21:49 -0600)
committer
David S. Miller
<
[email protected]
>
Sat, 11 Nov 2017 10:10:06 +0000
(19:10 +0900)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114888
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/3com/3c574_cs.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/3com/3c574_cs.c
b/drivers/net/ethernet/3com/3c574_cs.c
index 48bc7fa0258c916b4c3f97a8c0c88c5ece419887..3044a6f35f04c0a358c80a7a608bf752683f92f0 100644
(file)
--- a/
drivers/net/ethernet/3com/3c574_cs.c
+++ b/
drivers/net/ethernet/3com/3c574_cs.c
@@
-1046,6
+1046,7
@@
static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
switch(cmd) {
case SIOCGMIIPHY: /* Get the address of the PHY in use. */
data->phy_id = phy;
+ /* fall through */
case SIOCGMIIREG: /* Read the specified MII register. */
{
int saved_window;