Skip to contentSkip to conversation

ASoC: Intel: Skylake: Mark expected switch fall-through

PATCH RESEND New Gustavo A. R. Silva 1 participant 1 message Aug 8, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ASoC: Intel: Skylake: Mark expected switch fall-through

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

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

---
 sound/soc/intel/skylake/skl-pcm.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-pcm.c +1 -0
index 823e391..62d6f2f 100644
@@ -494,6 +494,7 @@ static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
 							stream->lpib);
 			snd_hdac_ext_stream_set_lpib(stream, stream->lpib);
 		}
+		/* fall through */
 
 	case SNDRV_PCM_TRIGGER_START:
 	case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
Signature · 1 line
2.7.4