commit | 93c747ed00c1c74316645f7761f0cdb3f3d3952d | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Fri Nov 20 12:40:27 2020 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 23 17:46:01 2020 +0100 |
tree | 02e2dbaaf30b9c92505782f6e25572b0ccbea051 | |
parent | 52a0372a38b45899368b44147db52f7360aaea31 [diff] [blame] |
usb: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break/return/fallthrough statements instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/a76da7ca5b4f41c13d27b298accb8222d0b04e61.1605896060.git.gustavoars@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index e3165d7..73ebfa6 100644 --- a/drivers/usb/misc/yurex.c +++ b/drivers/usb/misc/yurex.c
@@ -137,6 +137,7 @@ static void yurex_interrupt(struct urb *urb) dev_err(&dev->interface->dev, "%s - overflow with length %d, actual length is %d\n", __func__, YUREX_BUF_SIZE, dev->urb->actual_length); + return; case -ECONNRESET: case -ENOENT: case -ESHUTDOWN: