Преглед изворни кода

ALSA: mixart: Mark expected switch fall-through

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

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Gustavo A. R. Silva пре 7 година
родитељ
комит
ac69c2f578
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      sound/pci/mixart/mixart.c

+ 1 - 0
sound/pci/mixart/mixart.c

@@ -182,6 +182,7 @@ static int mixart_set_clock(struct mixart_mgr *mgr,
 	case PIPE_RUNNING:
 	case PIPE_RUNNING:
 		if(rate != 0)
 		if(rate != 0)
 			break;
 			break;
+		/* fall through */
 	default:
 	default:
 		if(rate == 0)
 		if(rate == 0)
 			return 0; /* nothing to do */
 			return 0; /* nothing to do */