aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-12 11:16:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-18 15:43:35 +0200
commitfd5b9b83d8226a2e50ba7c01818ca4ee3dd7aa6b (patch)
treed6d73184c612b305b73c1ab5a94e863bf543ccc3 /drivers/staging/rtl8188eu
parentstaging: rtl8188eu: usb_halinit: mark expected switch fall-through (diff)
downloadlinux-dev-fd5b9b83d8226a2e50ba7c01818ca4ee3dd7aa6b.tar.xz
linux-dev-fd5b9b83d8226a2e50ba7c01818ca4ee3dd7aa6b.zip
staging: rtl8188eu: usb_ops_linux: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1077613 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
index 64397b6f1248..7e75030475f7 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c
@@ -407,6 +407,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
case -ENODEV:
case -ESHUTDOWN:
adapt->bSurpriseRemoved = true;
+ /* fall through */
case -ENOENT:
adapt->bDriverStopped = true;
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bDriverStopped=true\n"));