From: Gustavo A. R. Silva Date: Wed, 1 Aug 2018 15:58:25 +0000 (-0500) Subject: ALSA: pcm: Mark expected switch fall-through X-Git-Tag: v4.19-rc1~158^2~1^2~40 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5a6cd13d4faef48bdcb7ae9c1e98175332ced7cd;p=users%2Fjedix%2Flinux-maple.git ALSA: pcm: Mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1357375 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Takashi Iwai --- diff --git a/sound/core/oss/pcm_plugin.c b/sound/core/oss/pcm_plugin.c index 85bab922ce69..0391cb1a4f19 100644 --- a/sound/core/oss/pcm_plugin.c +++ b/sound/core/oss/pcm_plugin.c @@ -353,6 +353,7 @@ snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format, if (snd_mask_test(format_mask, (__force int)format1)) return format1; } + /* fall through */ default: return (__force snd_pcm_format_t)-EINVAL; }