summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-06-28 14:50:48 -0400
committerDavid S. Miller <davem@davemloft.net>2018-06-30 07:47:16 -0400
commit9ca78674eb6a19acbb1d69e86273ebd1d3edf087 (patch)
tree9bf053d0cc2b9f987e5272b8a90fde25481ce1eb
parentd241d4aac93f25a48ed42c246163b6c28354b1e5 (diff)
net: usb: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/usb/catc.c1
-rw-r--r--drivers/net/usb/cdc-phonet.c1
-rw-r--r--drivers/net/usb/r8152.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c
index 18d36dff97ea..424053bd8b21 100644
--- a/drivers/net/usb/catc.c
+++ b/drivers/net/usb/catc.c
@@ -869,6 +869,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
869 default: 869 default:
870 dev_warn(&intf->dev, 870 dev_warn(&intf->dev,
871 "Couldn't detect memory size, assuming 32k\n"); 871 "Couldn't detect memory size, assuming 32k\n");
872 /* fall through */
872 case 0x87654321: 873 case 0x87654321:
873 catc_set_reg(catc, TxBufCount, 4); 874 catc_set_reg(catc, TxBufCount, 4);
874 catc_set_reg(catc, RxBufCount, 16); 875 catc_set_reg(catc, RxBufCount, 16);
diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c
index 3c40312fa453..78b16eb9e58c 100644
--- a/drivers/net/usb/cdc-phonet.c
+++ b/drivers/net/usb/cdc-phonet.c
@@ -110,6 +110,7 @@ static void tx_complete(struct urb *req)
110 case -ECONNRESET: 110 case -ECONNRESET:
111 case -ESHUTDOWN: 111 case -ESHUTDOWN:
112 dev->stats.tx_aborted_errors++; 112 dev->stats.tx_aborted_errors++;
113 /* fall through */
113 default: 114 default:
114 dev->stats.tx_errors++; 115 dev->stats.tx_errors++;
115 dev_dbg(&dev->dev, "TX error (%d)\n", status); 116 dev_dbg(&dev->dev, "TX error (%d)\n", status);
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index c08c0d633407..a3e06a8bf9c6 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -1376,6 +1376,7 @@ static void intr_callback(struct urb *urb)
1376 case -ECONNRESET: /* unlink */ 1376 case -ECONNRESET: /* unlink */
1377 case -ESHUTDOWN: 1377 case -ESHUTDOWN:
1378 netif_device_detach(tp->netdev); 1378 netif_device_detach(tp->netdev);
1379 /* fall through */
1379 case -ENOENT: 1380 case -ENOENT:
1380 case -EPROTO: 1381 case -EPROTO:
1381 netif_info(tp, intr, tp->netdev, 1382 netif_info(tp, intr, tp->netdev,
@@ -2741,6 +2742,7 @@ static void r8153b_ups_en(struct r8152 *tp, bool enable)
2741 r8152_mdio_write(tp, MII_BMCR, data); 2742 r8152_mdio_write(tp, MII_BMCR, data);
2742 2743
2743 data = r8153_phy_status(tp, PHY_STAT_LAN_ON); 2744 data = r8153_phy_status(tp, PHY_STAT_LAN_ON);
2745 /* fall through */
2744 2746
2745 default: 2747 default:
2746 if (data != PHY_STAT_LAN_ON) 2748 if (data != PHY_STAT_LAN_ON)