rtlwifi: rtl8723be: Fix Smatch warnings
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 17 Mar 2016 18:41:03 +0000 (13:41 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 Apr 2016 18:36:27 +0000 (21:36 +0300)
Smatch reports the following:

  CHECK   drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:1726 _rtl8723be_phy_path_a_rx_iqk() warn: inconsistent indenting
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2304 _rtl8723be_phy_lc_calibrate() warn: inconsistent indenting
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c:2609 _rtl8723be_phy_set_rf_power_state() warn: inconsistent indenting
  CHECK   drivers/net/wireless/realtek/rtlwifi/rtl8723be/rf.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/rf.c:306 _rtl8723be_get_txpower_writeval_by_regulatory() warn: inconsistent indenting

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/rf.c

index b7b73cb..445f681 100644 (file)
@@ -1723,8 +1723,8 @@ static u8 _rtl8723be_phy_path_a_rx_iqk(struct ieee80211_hw *hw)
 
        /* Allen 20131125 */
        tmp = (reg_eac & 0x03FF0000) >> 16;
-               if ((tmp & 0x200) > 0)
-                       tmp = 0x400 - tmp;
+       if ((tmp & 0x200) > 0)
+               tmp = 0x400 - tmp;
        /* if Tx is OK, check whether Rx is OK */
        if (!(reg_eac & BIT(27)) &&
            (((reg_ea4 & 0x03FF0000) >> 16) != 0x132) &&
@@ -2301,8 +2301,7 @@ static void _rtl8723be_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t)
        } else {
                rtl_write_byte(rtlpriv, REG_TXPAUSE, 0x00);
        }
-RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "\n");
-
+       RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "\n");
 }
 
 static void _rtl8723be_phy_set_rfpath_switch(struct ieee80211_hw *hw,
@@ -2606,8 +2605,7 @@ static bool _rtl8723be_phy_set_rf_power_state(struct ieee80211_hw *hw,
                                         "IPS Set eRf nic enable\n");
                                rtstatus = rtl_ps_enable_nic(hw);
                        } while (!rtstatus && (initializecount < 10));
-                               RT_CLEAR_PS_LEVEL(ppsc,
-                                                 RT_RF_OFF_LEVL_HALT_NIC);
+                       RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC);
                } else {
                        RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
                                 "Set ERFON sleeped:%d ms\n",
index 5ed4492..97f5a03 100644 (file)
@@ -303,8 +303,8 @@ static void _rtl8723be_get_txpower_writeval_by_regulatory(
                                           [chnlgroup][index + (rf ? 8 : 0)] &
                                              (0x7f << (i * 8))) >> (i * 8));
 
-                                       if (pwr_diff_limit[i] > pwr_diff)
-                                               pwr_diff_limit[i] = pwr_diff;
+                               if (pwr_diff_limit[i] > pwr_diff)
+                                       pwr_diff_limit[i] = pwr_diff;
                        }
 
                        customer_limit = (pwr_diff_limit[3] << 24) |