diff mbox series

[12/20] prism54: islpci_dev: mark expected switch fall-through

Message ID d8c3acfd0b661d18792ea34c7de974d33e4ecdac.1540239684.git.gustavo@embeddedor.com (mailing list archive)
State Accepted
Commit 38a0792d08e98a9aac5bcf638d8533d3fa5ff253
Delegated to: Kalle Valo
Headers show
Series Mark expected switch fall-throughs | expand

Commit Message

Gustavo A. R. Silva Oct. 22, 2018, 8:43 p.m. UTC
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 114947 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 drivers/net/wireless/intersil/prism54/islpci_dev.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intersil/prism54/islpci_dev.c b/drivers/net/wireless/intersil/prism54/islpci_dev.c
index 325176d..ad6d3a5 100644
--- a/drivers/net/wireless/intersil/prism54/islpci_dev.c
+++ b/drivers/net/wireless/intersil/prism54/islpci_dev.c
@@ -932,6 +932,7 @@  islpci_set_state(islpci_private *priv, islpci_state_t new_state)
 	switch (new_state) {
 	case PRV_STATE_OFF:
 		priv->state_off++;
+		/* fall through */
 	default:
 		priv->state = new_state;
 		break;