rtlwifi: rtl8192com: Fix blank line problems
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 21 Feb 2019 19:31:15 +0000 (13:31 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 08:30:05 +0000 (10:30 +0200)
The following types of blank line problems are reported:

WARNING: Missing a blank line after declarations
CHECK: Please don't use multiple blank lines

There are no code changes.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c
drivers/net/wireless/realtek/rtlwifi/rtl8192c/main.c
drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c

index 2f633118c717ad99e30dca319adc1dd181251fd9..f2908ee5f86018faa5ba36190b07d4469fc37d31 100644 (file)
@@ -425,7 +425,6 @@ static void rtl92c_dm_initial_gain_sta(struct ieee80211_hw *hw)
        if (dm_digtable->presta_cstate == dm_digtable->cursta_cstate ||
            dm_digtable->cursta_cstate == DIG_STA_BEFORE_CONNECT ||
            dm_digtable->cursta_cstate == DIG_STA_CONNECT) {
-
                if (dm_digtable->cursta_cstate != DIG_STA_DISCONNECT) {
                        dm_digtable->rssi_val_min =
                            rtl92c_dm_initial_gain_min_pwdb(hw);
@@ -504,7 +503,6 @@ static void rtl92c_dm_ctrl_initgain_by_twoport(struct ieee80211_hw *hw)
        rtl92c_dm_cck_packet_detection_thresh(hw);
 
        dm_digtable->presta_cstate = dm_digtable->cursta_cstate;
-
 }
 
 static void rtl92c_dm_dig(struct ieee80211_hw *hw)
@@ -607,6 +605,7 @@ static void rtl92c_dm_pwdb_monitor(struct ieee80211_hw *hw)
 void rtl92c_dm_init_edca_turbo(struct ieee80211_hw *hw)
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
+
        rtlpriv->dm.current_turbo_edca = false;
        rtlpriv->dm.is_any_nonbepkts = false;
        rtlpriv->dm.is_cur_rdlstate = false;
@@ -660,7 +659,6 @@ static void rtl92c_dm_check_edca_turbo(struct ieee80211_hw *hw)
 
        if ((bt_change_edca) || ((!rtlpriv->dm.is_any_nonbepkts) &&
             (!rtlpriv->dm.disable_framebursting))) {
-
                cur_txok_cnt = rtlpriv->stats.txbytesunicast - last_txok_cnt;
                cur_rxok_cnt = rtlpriv->stats.rxbytesunicast - last_rxok_cnt;
 
@@ -685,6 +683,7 @@ static void rtl92c_dm_check_edca_turbo(struct ieee80211_hw *hw)
        } else {
                if (rtlpriv->dm.current_turbo_edca) {
                        u8 tmp = AC0_BE;
+
                        rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AC_PARAM,
                                                      &tmp);
                        rtlpriv->dm.current_turbo_edca = false;
@@ -1635,7 +1634,6 @@ static void rtl92c_bt_ant_isolation(struct ieee80211_hw *hw, u8 tmp1byte)
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
 
-
        /* Only enable HW BT coexist when BT in "Busy" state. */
        if (rtlpriv->mac80211.vendor == PEER_CISCO &&
            rtlpriv->btcoexist.bt_service == BT_OTHER_ACTION) {
index 6af72799e09c7c51eca2a8bb59482a2bdb26af3d..18c76990a089840cb1b9982ffbaa9b59c4970ea2 100644 (file)
@@ -18,6 +18,7 @@ static void _rtl92c_enable_fw_download(struct ieee80211_hw *hw, bool enable)
 
        if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192CU) {
                u32 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL);
+
                if (enable)
                        value32 |= MCUFWDL_EN;
                else
@@ -25,8 +26,8 @@ static void _rtl92c_enable_fw_download(struct ieee80211_hw *hw, bool enable)
                rtl_write_dword(rtlpriv, REG_MCUFWDL, value32);
        } else if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192CE) {
                u8 tmp;
-               if (enable) {
 
+               if (enable) {
                        tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1);
                        rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1,
                                       tmp | 0x04);
@@ -37,7 +38,6 @@ static void _rtl92c_enable_fw_download(struct ieee80211_hw *hw, bool enable)
                        tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL + 2);
                        rtl_write_byte(rtlpriv, REG_MCUFWDL + 2, tmp & 0xf7);
                } else {
-
                        tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL);
                        rtl_write_byte(rtlpriv, REG_MCUFWDL, tmp & 0xfe);
 
@@ -622,7 +622,6 @@ void rtl92c_set_fw_rsvdpagepkt(struct ieee80211_hw *hw,
                      "rtl92c_set_fw_rsvdpagepkt(): HW_VAR_SET_TX_CMD: ALL\n",
                      u1rsvdpageloc, 3);
 
-
        skb = dev_alloc_skb(totalpacketlen);
        skb_put_data(skb, &reserved_page_packet, totalpacketlen);
 
index e8af1952d2430db97b69987b64a626b3a7b33968..97ad21c3964f27718d82d46dab83ff75a2881bc7 100644 (file)
@@ -4,7 +4,6 @@
 #include "../wifi.h"
 #include <linux/module.h>
 
-
 MODULE_AUTHOR("lizhaoming      <chaoming_li@realsil.com.cn>");
 MODULE_AUTHOR("Realtek WlanFAE <wlanfae@realtek.com>");
 MODULE_AUTHOR("Georgia         <georgia@realtek.com>");
index c6a3ed441c3f414068d0816a8d834c2c94f154db..0efd19aa4fe51a74e80e8a0e435ffda350733127 100644 (file)
@@ -747,6 +747,7 @@ static void _rtl92c_phy_sw_rf_seting(struct ieee80211_hw *hw, u8 channel)
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
        struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
+
        if (IS_81XXC_VENDOR_UMC_B_CUT(rtlhal->version)) {
                if (channel == 6 &&
                    rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20) {