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:
2d91914
)
net: 8390: pcnet_cs: mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Thu, 9 Nov 2017 03:44:38 +0000
(21:44 -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: 114891
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/8390/pcnet_cs.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/8390/pcnet_cs.c
b/drivers/net/ethernet/8390/pcnet_cs.c
index eae9827035dcfe45e0dd2dbf9f524aee43e3ba73..bcad4a7fac9f57b0141712dd0aefc1d2d25845fc 100644
(file)
--- a/
drivers/net/ethernet/8390/pcnet_cs.c
+++ b/
drivers/net/ethernet/8390/pcnet_cs.c
@@
-1107,6
+1107,7
@@
static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
switch (cmd) {
case SIOCGMIIPHY:
data->phy_id = info->phy_id;
+ /* fall through */
case SIOCGMIIREG: /* Read MII PHY register. */
data->val_out = mdio_read(mii_addr, data->phy_id, data->reg_num & 0x1f);
return 0;