Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: usbhid: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple
of warnings by explicitly adding a couple of break 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>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Gustavo A. R. Silva and committed by
Jiri Kosina
cae96a5d c6838eee

+2
+2
drivers/hid/usbhid/hid-core.c
··· 438 438 break; 439 439 case -ESHUTDOWN: /* unplug */ 440 440 unplug = 1; 441 + break; 441 442 case -EILSEQ: /* protocol error or unplug */ 442 443 case -EPROTO: /* protocol error or unplug */ 443 444 case -ECONNRESET: /* unlink */ ··· 490 489 break; 491 490 case -ESHUTDOWN: /* unplug */ 492 491 unplug = 1; 492 + break; 493 493 case -EILSEQ: /* protocol error or unplug */ 494 494 case -EPROTO: /* protocol error or unplug */ 495 495 case -ECONNRESET: /* unlink */