Commit f458f9f4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 00316144
...@@ -830,10 +830,12 @@ static bool carl9170_tx_rts_check(struct ar9170 *ar, ...@@ -830,10 +830,12 @@ static bool carl9170_tx_rts_check(struct ar9170 *ar,
case CARL9170_ERP_AUTO: case CARL9170_ERP_AUTO:
if (ampdu) if (ampdu)
break; break;
/* fall through */
case CARL9170_ERP_MAC80211: case CARL9170_ERP_MAC80211:
if (!(rate->flags & IEEE80211_TX_RC_USE_RTS_CTS)) if (!(rate->flags & IEEE80211_TX_RC_USE_RTS_CTS))
break; break;
/* fall through */
case CARL9170_ERP_RTS: case CARL9170_ERP_RTS:
if (likely(!multi)) if (likely(!multi))
...@@ -854,6 +856,7 @@ static bool carl9170_tx_cts_check(struct ar9170 *ar, ...@@ -854,6 +856,7 @@ static bool carl9170_tx_cts_check(struct ar9170 *ar,
case CARL9170_ERP_MAC80211: case CARL9170_ERP_MAC80211:
if (!(rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) if (!(rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT))
break; break;
/* fall through */
case CARL9170_ERP_CTS: case CARL9170_ERP_CTS:
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment