aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:34:01 -0600
committerTakashi Iwai <tiwai@suse.de>2020-11-21 09:29:25 +0100
commit59e3d501cfaa51890f1a712f10065914632e1c91 (patch)
tree2daec05517980d1d017deaf6cdd5edaa1fb24608 /sound/drivers
parentALSA: hdspm: Fix fall-through warnings for Clang (diff)
downloadlinux-dev-59e3d501cfaa51890f1a712f10065914632e1c91.tar.xz
linux-dev-59e3d501cfaa51890f1a712f10065914632e1c91.zip
ALSA: pcsp: 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 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>
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/pcsp/pcsp_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/drivers/pcsp/pcsp_input.c b/sound/drivers/pcsp/pcsp_input.c
index 52b475b310c3..e79603fe743d 100644
--- 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: