diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-02 23:40:37 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-03 13:20:58 +0300 |
commit | a9fe47e5e96be6401738f6c1e087edbcff6a5ceb (patch) | |
tree | c7003d8a4af95c5da64406e9825ff8aa6abc1290 /sound/isa | |
parent | 789b7f43858f1c74a1c528e8b8f78c78624800d8 (diff) | |
download | linux-a9fe47e5e96be6401738f6c1e087edbcff6a5ceb.tar.xz |
ALSA: galaxy: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1468367 ("Missing break in switch")
Addresses-Coverity-ID: 115037 ("Missing break in switch")
Addresses-Coverity-ID: 115038 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/galaxy/galaxy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/isa/galaxy/galaxy.c b/sound/isa/galaxy/galaxy.c index b9994cc9f5fb..af9eea41379f 100644 --- a/sound/isa/galaxy/galaxy.c +++ b/sound/isa/galaxy/galaxy.c @@ -260,6 +260,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n) break; case 2: irq[n] = 9; + /* Fall through */ case 9: wss_config[n] |= WSS_CONFIG_IRQ_9; break; @@ -304,6 +305,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n) case 1: if (dma1[n] == 0) break; + /* Fall through */ default: dev_err(dev, "invalid capture DMA %d\n", dma2[n]); return 0; @@ -333,6 +335,7 @@ mpu: break; case 2: mpu_irq[n] = 9; + /* Fall through */ case 9: config[n] |= GALAXY_CONFIG_MPUIRQ_2; break; |