diff options
author | Michael Brown | 2017-03-29 09:36:03 +0200 |
---|---|---|
committer | Michael Brown | 2017-03-29 09:36:45 +0200 |
commit | 5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f (patch) | |
tree | 3f69e821428c32483724f3f1ba83f4211ec11572 /src/drivers/net/ath | |
parent | [mucurses] Fix erroneous __nonnull attribute (diff) | |
download | ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.gz ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.xz ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.zip |
[build] Avoid implicit-fallthrough warnings on GCC 7
Reported-by: Vinson Lee <vlee@freedesktop.org>
Reported-by: Liang Yan <lyan@suse.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/ath')
-rw-r--r-- | src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c | 2 | ||||
-rw-r--r-- | src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c | 1 | ||||
-rw-r--r-- | src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c b/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c index 2b6c133c..a98e4bb6 100644 --- a/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c +++ b/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c @@ -640,12 +640,14 @@ static void ar5008_hw_init_chain_masks(struct ath_hw *ah) case 0x5: REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP, AR_PHY_SWAP_ALT_CHAIN); + /* Fall through */ case 0x3: if (ah->hw_version.macVersion == AR_SREV_REVISION_5416_10) { REG_WRITE(ah, AR_PHY_RX_CHAINMASK, 0x7); REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, 0x7); break; } + /* Fall through */ case 0x1: case 0x2: case 0x7: diff --git a/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c b/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c index 72203ba4..65cfad59 100644 --- a/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c +++ b/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c @@ -122,6 +122,7 @@ static int ar9002_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan) aModeRefSel = 2; if (aModeRefSel) break; + /* Fall through */ case 1: default: aModeRefSel = 0; diff --git a/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c b/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c index 2244b775..b66358b9 100644 --- a/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c +++ b/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c @@ -539,6 +539,7 @@ void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx) case 0x5: REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP, AR_PHY_SWAP_ALT_CHAIN); + /* Fall through */ case 0x3: case 0x1: case 0x2: |