]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mt7601u: phy: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 30 Mar 2018 21:12:23 +0000 (16:12 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 17:27:59 +0000 (20:27 +0300)
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>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/phy.c

index ca09a5d4305efff5972028e38e429774aeb93976..9a90f1f09fb0d1ea984bee87c3cbe2510875e432 100644 (file)
@@ -795,6 +795,7 @@ mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate)
        switch (phy_mode) {
        case MT_PHY_TYPE_OFDM:
                tx_rate += 4;
+               /* fall through */
        case MT_PHY_TYPE_CCK:
                reg = dev->rf_pa_mode[0];
                break;