mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 13:05:03 +08:00
carl9170: tx: mark expected switch fall-throughs
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> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
003161445b
commit
f458f9f436
@ -830,10 +830,12 @@ static bool carl9170_tx_rts_check(struct ar9170 *ar,
|
||||
case CARL9170_ERP_AUTO:
|
||||
if (ampdu)
|
||||
break;
|
||||
/* fall through */
|
||||
|
||||
case CARL9170_ERP_MAC80211:
|
||||
if (!(rate->flags & IEEE80211_TX_RC_USE_RTS_CTS))
|
||||
break;
|
||||
/* fall through */
|
||||
|
||||
case CARL9170_ERP_RTS:
|
||||
if (likely(!multi))
|
||||
@ -854,6 +856,7 @@ static bool carl9170_tx_cts_check(struct ar9170 *ar,
|
||||
case CARL9170_ERP_MAC80211:
|
||||
if (!(rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT))
|
||||
break;
|
||||
/* fall through */
|
||||
|
||||
case CARL9170_ERP_CTS:
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user