Commit 72509732 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Takashi Iwai

ALSA: mixart: Mark expected switch fall-through

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

Notice that in this particular case, I replaced the code comment with
a proper "fall through" annotation, which is what GCC is expecting
to find.

Addresses-Coverity-ID: 114889 ("Missing break in switch")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0c93c5ce
...@@ -540,7 +540,7 @@ irqreturn_t snd_mixart_threaded_irq(int irq, void *dev_id) ...@@ -540,7 +540,7 @@ irqreturn_t snd_mixart_threaded_irq(int irq, void *dev_id)
dev_err(&mgr->pci->dev, dev_err(&mgr->pci->dev,
"canceled notification %x !\n", msg); "canceled notification %x !\n", msg);
} }
/* no break, continue ! */ /* fall through */
case MSG_TYPE_ANSWER: case MSG_TYPE_ANSWER:
/* answer or notification to a message we are waiting for*/ /* answer or notification to a message we are waiting for*/
mutex_lock(&mgr->msg_lock); mutex_lock(&mgr->msg_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment