Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gustavo A. R. Silva and committed by
Takashi Iwai
a9fe47e5 789b7f43

+3
+3
sound/isa/galaxy/galaxy.c
··· 260 260 break; 261 261 case 2: 262 262 irq[n] = 9; 263 + /* Fall through */ 263 264 case 9: 264 265 wss_config[n] |= WSS_CONFIG_IRQ_9; 265 266 break; ··· 305 304 case 1: 306 305 if (dma1[n] == 0) 307 306 break; 307 + /* Fall through */ 308 308 default: 309 309 dev_err(dev, "invalid capture DMA %d\n", dma2[n]); 310 310 return 0; ··· 335 333 break; 336 334 case 2: 337 335 mpu_irq[n] = 9; 336 + /* Fall through */ 338 337 case 9: 339 338 config[n] |= GALAXY_CONFIG_MPUIRQ_2; 340 339 break;