summaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-08-09 17:39:44 +0200
committerDavid S. Miller2018-08-11 20:29:36 +0200
commit849063074a84fe388a15f5655bc26fdf3290a2ac (patch)
tree0ce92beda0d394d0f08d7660dd03afc72bd851ed /drivers/net/wimax/i2400m
parentnet: dp83640: Mark expected switch fall-throughs (diff)
downloadkernel-qcow2-linux-849063074a84fe388a15f5655bc26fdf3290a2ac.tar.gz
kernel-qcow2-linux-849063074a84fe388a15f5655bc26fdf3290a2ac.tar.xz
kernel-qcow2-linux-849063074a84fe388a15f5655bc26fdf3290a2ac.zip
wimax: usb-fw: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case, I placed the "fall through" annotation at the bottom of the case, which is what GCC is expecting to find. Addresses-Coverity-ID: 1369529 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax/i2400m')
-rw-r--r--drivers/net/wimax/i2400m/usb-fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/usb-fw.c b/drivers/net/wimax/i2400m/usb-fw.c
index 502c346aa790..529ebca1e9e1 100644
--- a/drivers/net/wimax/i2400m/usb-fw.c
+++ b/drivers/net/wimax/i2400m/usb-fw.c
@@ -130,12 +130,12 @@ retry:
dev_err(dev, "BM-CMD: too many stalls in "
"URB; resetting device\n");
usb_queue_reset_device(i2400mu->usb_iface);
- /* fallthrough */
} else {
usb_clear_halt(i2400mu->usb_dev, pipe);
msleep(10); /* give the device some time */
goto retry;
}
+ /* fall through */
case -EINVAL: /* while removing driver */
case -ENODEV: /* dev disconnect ... */
case -ENOENT: /* just ignore it */