Skip to contentSkip to conversation

ALSA: pcm: Mark expected switch fall-through

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Aug 1, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---
 sound/core/oss/pcm_plugin.c | 1 +
 1 file changed, 1 insertion(+)
sound/core/oss/pcm_plugin.c +1 -0
index 85bab92..0391cb1a 100644
@@ -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;
 		}
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 6 lines · Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Addresses-Coverity-ID: 1357375 ("Missing break in switch")

Applied, thanks.

Takashi