diff mbox series

[11/20] prism54: isl_ioctl: mark expected switch fall-through

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

Commit Message

Gustavo A. R. Silva Oct. 22, 2018, 8:42 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>
---
 drivers/net/wireless/intersil/prism54/isl_ioctl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intersil/prism54/isl_ioctl.c b/drivers/net/wireless/intersil/prism54/isl_ioctl.c
index 334717b0..3ccf2a4 100644
--- a/drivers/net/wireless/intersil/prism54/isl_ioctl.c
+++ b/drivers/net/wireless/intersil/prism54/isl_ioctl.c
@@ -1691,6 +1691,7 @@  static int prism54_get_encodeext(struct net_device *ndev,
 	case DOT11_AUTH_BOTH:
 	case DOT11_AUTH_SK:
 		wrqu->encoding.flags |= IW_ENCODE_RESTRICTED;
+		/* fall through */
 	case DOT11_AUTH_OS:
 	default:
 		wrqu->encoding.flags |= IW_ENCODE_OPEN;