ALSA: mixart: Mark expected switch fall-through
diff mbox series

Message ID 20180804201103.GA26669@embeddedor.com
State New
Headers show
Series
  • ALSA: mixart: Mark expected switch fall-through
Related show

Commit Message

Gustavo A. R. Silva Aug. 4, 2018, 8:11 p.m. UTC
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>
---
 sound/pci/mixart/mixart.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Takashi Iwai Aug. 5, 2018, 4:43 p.m. UTC | #1
On Sat, 04 Aug 2018 22:11:03 +0200,
 Gustavo A. R. Silva  wrote:
> 
> 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>

Applied, thanks.


Takashi

Patch
diff mbox series

diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c
index a74f1ad..9cd297a 100644
--- a/sound/pci/mixart/mixart.c
+++ b/sound/pci/mixart/mixart.c
@@ -182,6 +182,7 @@  static int mixart_set_clock(struct mixart_mgr *mgr,
 	case PIPE_RUNNING:
 		if(rate != 0)
 			break;
+		/* fall through */
 	default:
 		if(rate == 0)
 			return 0; /* nothing to do */