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

ALSA: opti92x: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1165394 ("Missing break in switch")
Addresses-Coverity-ID: 1167851 ("Missing break in switch")
Addresses-Coverity-ID: 402015 ("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
3e313f34 a9fe47e5

+3
+3
sound/isa/opti9xx/opti92x-ad1848.c
··· 261 261 retval = inb(chip->mc_base + 9); 262 262 break; 263 263 } 264 + /* Fall through */ 264 265 265 266 case OPTi9XX_HW_82C928: 266 267 case OPTi9XX_HW_82C929: ··· 304 303 outb(value, chip->mc_base + 9); 305 304 break; 306 305 } 306 + /* Fall through */ 307 307 308 308 case OPTi9XX_HW_82C928: 309 309 case OPTi9XX_HW_82C929: ··· 352 350 snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(4), 0xf0, 0xfc); 353 351 /* enable wave audio */ 354 352 snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(6), 0x02, 0x02); 353 + /* Fall through */ 355 354 356 355 case OPTi9XX_HW_82C925: 357 356 /* enable WSS mode */