Commit a9fe47e5 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Takashi Iwai

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 789b7f43
...@@ -260,6 +260,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n) ...@@ -260,6 +260,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n)
break; break;
case 2: case 2:
irq[n] = 9; irq[n] = 9;
/* Fall through */
case 9: case 9:
wss_config[n] |= WSS_CONFIG_IRQ_9; wss_config[n] |= WSS_CONFIG_IRQ_9;
break; break;
...@@ -304,6 +305,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n) ...@@ -304,6 +305,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n)
case 1: case 1:
if (dma1[n] == 0) if (dma1[n] == 0)
break; break;
/* Fall through */
default: default:
dev_err(dev, "invalid capture DMA %d\n", dma2[n]); dev_err(dev, "invalid capture DMA %d\n", dma2[n]);
return 0; return 0;
...@@ -333,6 +335,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n) ...@@ -333,6 +335,7 @@ static int snd_galaxy_match(struct device *dev, unsigned int n)
break; break;
case 2: case 2:
mpu_irq[n] = 9; mpu_irq[n] = 9;
/* Fall through */
case 9: case 9:
config[n] |= GALAXY_CONFIG_MPUIRQ_2; config[n] |= GALAXY_CONFIG_MPUIRQ_2;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment