rtlwifi: Fix typo in if ... else if ... else construct
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 15 Oct 2017 01:58:21 +0000 (20:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:53:50 +0000 (15:53 +0200)
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 <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Cc: kbuild-all@01.org
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/base.c

index 38e48f3..28ff1a5 100644 (file)
@@ -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];