ALSA: echoaudio: Mark expected switch fall-throughs
PATCH 1/1 ALSA: echoaudio: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 115156 ("Missing break in switch")
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- sound/pci/echoaudio/echoaudio.c | 2 ++ 1 file changed, 2 insertions(+)
sound/pci/echoaudio/echoaudio.c +2 -0
@@ -713,6 +713,7 @@ static int pcm_prepare(struct snd_pcm_substream *substream)break ;case SNDRV_PCM_FORMAT_S32_BE : format.data_are_bigendian =1 ; +/* fall through */ case SNDRV_PCM_FORMAT_S32_LE : format.bits_per_sample =32 ;break ;
@@ -764,6 +765,7 @@ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd) pipe->last_counter =0 ; pipe->position =0 ; *pipe->dma_counter =0 ; +/* fall through */ case PIPE_STATE_PAUSED : pipe->state =PIPE_STATE_STARTED ;break ;
Signature · 1 line
2.7.4
Takashi Iwai
AppliedQuoted 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: 115156 ("Missing break in switch")
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied, thanks.
Takashi