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

ALSA: opti9xx: mark expected switch fall-throughs

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

Addresses-Coverity-ID: 402016 ("Missing break in switch")
Addresses-Coverity-ID: 1056542 ("Missing break in switch")
Addresses-Coverity-ID: 1339579 ("Missing break in switch")
Addresses-Coverity-ID: 1369526 ("Missing break in switch")
Addresses-Coverity-ID: 1369529 ("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
734be97b 3e313f34

+5
+5
sound/isa/opti9xx/miro.c
··· 176 176 switch (timeout-ACI_MINTIME) { 177 177 case 0 ... 9: 178 178 out /= 10; 179 + /* fall through */ 179 180 case 10 ... 19: 180 181 out /= 10; 182 + /* fall through */ 181 183 case 20 ... 30: 182 184 out /= 10; 185 + /* fall through */ 183 186 default: 184 187 set_current_state(TASK_UNINTERRUPTIBLE); 185 188 schedule_timeout(out); ··· 837 834 retval = inb(chip->mc_base + 9); 838 835 break; 839 836 } 837 + /* fall through */ 840 838 841 839 case OPTi9XX_HW_82C929: 842 840 retval = inb(chip->mc_base + reg); ··· 867 863 outb(value, chip->mc_base + 9); 868 864 break; 869 865 } 866 + /* fall through */ 870 867 871 868 case OPTi9XX_HW_82C929: 872 869 outb(value, chip->mc_base + reg);