From: Gustavo A. R. Silva Date: Fri, 20 Nov 2020 18:33:29 +0000 (-0600) Subject: HID: input: Fix fall-through warnings for Clang X-Git-Tag: v5.11-rc1~95^2~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b5542752605ccf2184f495fae518fac1d573226;p=thirdparty%2Fkernel%2Flinux.git HID: input: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a goto statement 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index b0db2a2ac15a7..fb565902a8c39 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -746,6 +746,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel field->flags |= HID_MAIN_ITEM_RELATIVE; break; } + goto unknown; default: goto unknown; }