Skip to content

Commit a7986ce

Browse files
lwfingerKalle Valo
authored andcommitted
rtlwifi: Fix typo in if ... else if ... else construct
The kbuild test robot reports two conditions with no effect (if == else). These are the result of copy and paste typographical errors. Signed-off-by: Larry Finger <[email protected]> Cc: Ping-Ke Shih <[email protected]> Cc: Yan-Hsuan Chuang <[email protected]> Cc: Birming Chiu <[email protected]> Cc: Shaofu <[email protected]> Cc: Steven Ting <[email protected]> Cc: [email protected] Cc: Julia Lawall <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 0fac9e2 commit a7986ce

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/realtek/rtlwifi

1 file changed

+2
-2
lines changed

drivers/net/wireless/realtek/rtlwifi/base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw,
831831
else if ((tx_mcs_map & 0x000c) >> 2 ==
832832
IEEE80211_VHT_MCS_SUPPORT_0_8)
833833
hw_rate =
834-
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9];
834+
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS8];
835835
else
836836
hw_rate =
837837
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9];
@@ -843,7 +843,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw,
843843
else if ((tx_mcs_map & 0x0003) ==
844844
IEEE80211_VHT_MCS_SUPPORT_0_8)
845845
hw_rate =
846-
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9];
846+
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS8];
847847
else
848848
hw_rate =
849849
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9];

0 commit comments

Comments
 (0)