1
0
Fork 0

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 <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
hifive-unleashed-5.1
Gustavo A. R. Silva 2018-08-01 10:58:25 -05:00 committed by Takashi Iwai
parent d36455a38e
commit 5a6cd13d4f
1 changed files with 1 additions and 0 deletions

View 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;
}