From: Gustavo A. R. Silva Date: Mon, 23 Nov 2020 06:15:30 +0000 (-0800) Subject: Input: pcspkr - fix fall-through warnings for Clang X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9a710bc8d90cc8044b4082c2919b0663043c7ed;p=linux.git Input: pcspkr - fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Signed-off-by: Gustavo A. R. Silva Link: https://lore.kernel.org/r/4b659e3e65f2fa3c8bb7ed153e2016c3fb395bbc.1605896059.git.gustavoars@kernel.org Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index e5e0d8ba80e18..9c666b2f14fef 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c @@ -33,6 +33,7 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, case SND_BELL: if (value) value = 1000; + break; case SND_TONE: break; default: