diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-28 07:40:46 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-29 06:37:35 -0400 |
commit | 1f96153bc613c526f5ea39a7f366b3bdf70249be (patch) | |
tree | 95ce0514ab1a9dd231bb1d9a60adc60e4e5048c6 | |
parent | ca16ec02e1887cc88e9eb3504ee8ea6d8112d05d (diff) |
ALSA: pcm: Add fallthru comments
Just to improve readability.
Spotted by coverity CID 115002 and 115003.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/core/pcm_native.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index b71be579c6ec..01a5e05ede95 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -2428,6 +2428,7 @@ static int snd_pcm_hwsync(struct snd_pcm_substream *substream) | |||
2428 | case SNDRV_PCM_STATE_DRAINING: | 2428 | case SNDRV_PCM_STATE_DRAINING: |
2429 | if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) | 2429 | if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) |
2430 | goto __badfd; | 2430 | goto __badfd; |
2431 | /* Fall through */ | ||
2431 | case SNDRV_PCM_STATE_RUNNING: | 2432 | case SNDRV_PCM_STATE_RUNNING: |
2432 | if ((err = snd_pcm_update_hw_ptr(substream)) < 0) | 2433 | if ((err = snd_pcm_update_hw_ptr(substream)) < 0) |
2433 | break; | 2434 | break; |
@@ -2460,6 +2461,7 @@ static int snd_pcm_delay(struct snd_pcm_substream *substream, | |||
2460 | case SNDRV_PCM_STATE_DRAINING: | 2461 | case SNDRV_PCM_STATE_DRAINING: |
2461 | if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) | 2462 | if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) |
2462 | goto __badfd; | 2463 | goto __badfd; |
2464 | /* Fall through */ | ||
2463 | case SNDRV_PCM_STATE_RUNNING: | 2465 | case SNDRV_PCM_STATE_RUNNING: |
2464 | if ((err = snd_pcm_update_hw_ptr(substream)) < 0) | 2466 | if ((err = snd_pcm_update_hw_ptr(substream)) < 0) |
2465 | break; | 2467 | break; |