diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-09 17:47:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-11 20:29:36 +0200 |
commit | 8a8a894ebbc23f52669b80c2ca5bf62d75267324 (patch) | |
tree | 73780f3dbf3ca768f99a51053ee0caea375d061e /drivers/net/wimax | |
parent | wimax: usb-fw: mark expected switch fall-through (diff) | |
download | linux-8a8a894ebbc23f52669b80c2ca5bf62d75267324.tar.xz linux-8a8a894ebbc23f52669b80c2ca5bf62d75267324.zip |
wimax: usb-tx: 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: 115075 ("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')
-rw-r--r-- | drivers/net/wimax/i2400m/usb-tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/usb-tx.c b/drivers/net/wimax/i2400m/usb-tx.c index 99ef81b3d5a5..3a0e7226768a 100644 --- a/drivers/net/wimax/i2400m/usb-tx.c +++ b/drivers/net/wimax/i2400m/usb-tx.c @@ -131,12 +131,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, usb_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 */ |