summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2020-11-11 02:47:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-13 15:20:52 +0100
commit1d6903a617a221f9d8295847ffaa3c39cd6b13ba (patch)
tree10c069c02c67c40284fd1bed23c3596f3a9c8795 /drivers/usb/core
parentMerge 5.10-rc3 into usb-next (diff)
downloadlinux-1d6903a617a221f9d8295847ffaa3c39cd6b13ba.tar.xz
linux-1d6903a617a221f9d8295847ffaa3c39cd6b13ba.zip
usb: fix a few cases of -Wfallthrough
The "fallthrough" pseudo-keyword was added as a portable way to denote intentional fallthrough. Clang will still warn on cases where there is a fallthrough to an immediate break. Add explicit breaks for those cases. Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Link: https://lore.kernel.org/r/20201111014716.260633-1-ndesaulniers@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index 562a730befda..b199eb65f378 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -1076,6 +1076,7 @@ int usb_get_bos_descriptor(struct usb_device *dev)
case USB_PTM_CAP_TYPE:
dev->bos->ptm_cap =
(struct usb_ptm_cap_descriptor *)buffer;
+ break;
default:
break;
}