projects
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59bbf83
)
Input: pcspkr - fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Mon, 23 Nov 2020 06:15:30 +0000
(22:15 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 23 Nov 2020 06:16:21 +0000
(22:16 -0800)
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 <gustavoars@kernel.org>
Link:
https://lore.kernel.org/r/4b659e3e65f2fa3c8bb7ed153e2016c3fb395bbc.1605896059.git.gustavoars@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pcspkr.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/pcspkr.c
b/drivers/input/misc/pcspkr.c
index e5e0d8ba80e18069a69eeb985504612de4fa7614..9c666b2f14fef0f28572540eb2a0b85ea486080f 100644
(file)
--- 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: