aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:33:29 -0600
committerJiri Kosina <jkosina@suse.cz>2020-11-25 14:04:46 +0100
commit6b5542752605ccf2184f495fae518fac1d573226 (patch)
tree561e395d104875ff5ed25e9e0e59336f484a50e8 /drivers/hid
parentHID: usbhid: Fix fall-through warnings for Clang (diff)
downloadlinux-dev-6b5542752605ccf2184f495fae518fac1d573226.tar.xz
linux-dev-6b5542752605ccf2184f495fae518fac1d573226.zip
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 <gustavoars@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index b0db2a2ac15a..fb565902a8c3 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;
}