projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf304a
)
mt7601u: phy: mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Fri, 30 Mar 2018 21:12:23 +0000
(16:12 -0500)
committer
Kalle Valo
<
[email protected]
>
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 <
[email protected]
>
Acked-by: Jakub Kicinski <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/mediatek/mt7601u/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt7601u/phy.c
b/drivers/net/wireless/mediatek/mt7601u/phy.c
index ca09a5d4305efff5972028e38e429774aeb93976..9a90f1f09fb0d1ea984bee87c3cbe2510875e432 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt7601u/phy.c
+++ b/
drivers/net/wireless/mediatek/mt7601u/phy.c
@@
-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;