mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
7d2e2a881c
commit
df0f0e71fc
1 file changed
+2
-2
@@ -920,7 +920,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw,
|
||||
else if ((tx_mcs_map & 0x000c) >> 2 ==
|
||||
IEEE80211_VHT_MCS_SUPPORT_0_8)
|
||||
hw_rate =
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9];
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS8];
|
||||
else
|
||||
hw_rate =
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_2SS_MCS9];
|
||||
@@ -932,7 +932,7 @@ static u8 _rtl_get_vht_highest_n_rate(struct ieee80211_hw *hw,
|
||||
else if ((tx_mcs_map & 0x0003) ==
|
||||
IEEE80211_VHT_MCS_SUPPORT_0_8)
|
||||
hw_rate =
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9];
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS8];
|
||||
else
|
||||
hw_rate =
|
||||
rtlpriv->cfg->maps[RTL_RC_VHT_RATE_1SS_MCS9];
|
||||
|
||||
Reference in new issue
Block a user