ALSA: pcm: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 1 Aug 2018 15:58:25 +0000 (10:58 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 1 Aug 2018 16:13:04 +0000 (18:13 +0200)
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 <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_plugin.c

index 85bab92..0391cb1 100644 (file)
@@ -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;
                }