projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704cbc4
)
ALSA: pcsp: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:34:01 +0000
(12:34 -0600)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 21 Nov 2020 08:29:25 +0000
(09:29 +0100)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break 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>
Link:
https://lore.kernel.org/r/9705120ac2310bb20035e375862410413359611d.1605896059.git.gustavoars@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcsp/pcsp_input.c
patch
|
blob
|
history
diff --git
a/sound/drivers/pcsp/pcsp_input.c
b/sound/drivers/pcsp/pcsp_input.c
index
52b475b
..
e79603f
100644
(file)
--- a/
sound/drivers/pcsp/pcsp_input.c
+++ b/
sound/drivers/pcsp/pcsp_input.c
@@
-54,6
+54,7
@@
static int pcspkr_input_event(struct input_dev *dev, unsigned int type,
case SND_BELL:
if (value)
value = 1000;
+ break;
case SND_TONE:
break;
default: