staging: r8822be: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 16:17:01 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:21:26 +0000 (16:21 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_api_88xx.c

index edbf6af1c8b70a76749e7554bff3f718a8a431ad..448b1379d2200980fffc16d59e5b2b6924e49589 100644 (file)
@@ -3391,8 +3391,10 @@ halmac_cfg_txbf_88xx(struct halmac_adapter *halmac_adapter, u8 userid,
                switch (bw) {
                case HALMAC_BW_80:
                        temp42C |= BIT_R_TXBF0_80M;
+                       /* fall through */
                case HALMAC_BW_40:
                        temp42C |= BIT_R_TXBF0_40M;
+                       /* fall through */
                case HALMAC_BW_20:
                        temp42C |= BIT_R_TXBF0_20M;
                        break;