diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 19:33:29 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-11-25 14:04:46 +0100 |
commit | 6b5542752605ccf2184f495fae518fac1d573226 (patch) | |
tree | 561e395d104875ff5ed25e9e0e59336f484a50e8 /drivers/hid | |
parent | HID: usbhid: Fix fall-through warnings for Clang (diff) | |
download | linux-6b5542752605ccf2184f495fae518fac1d573226.tar.xz linux-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.c | 1 |
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; } |