]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtl8xxxu: Remove unused clutter for handling recursive calls to rtl8xxxu_init_device()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 3 Feb 2016 18:39:48 +0000 (13:39 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Feb 2016 09:55:32 +0000 (11:55 +0200)
This was a leftover from the vendor driver that was never utilized.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

index 7a571efbdc1cda144bccd8f308c4125d202d235c..4a6939f1454f8046bbe786f38f60d33c39ffdd29 100644 (file)
@@ -4289,17 +4289,7 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
 
        rtl8xxxu_write16(priv, REG_FAST_EDCA_CTRL, 0);
 
-       /*
-        * Not sure if we should get into this at all
-        */
-       if (priv->iqk_initialized) {
-               rtl8xxxu_restore_regs(priv, rtl8723au_iqk_phy_iq_bb_reg,
-                                     priv->bb_recovery_backup,
-                                     RTL8XXXU_BB_REGS);
-       } else {
-               rtl8723a_phy_iq_calibrate(priv);
-               priv->iqk_initialized = true;
-       }
+       rtl8723a_phy_iq_calibrate(priv);
 
        /*
         * This should enable thermal meter
index f2a1bac6c8ec966200f1bc86a28fae0ac7e53e13..f71fb8dd951c582e236c44f645c1d6a3e443d3f7 100644 (file)
@@ -652,7 +652,6 @@ struct rtl8xxxu_priv {
        u32 bb_recovery_backup[RTL8XXXU_BB_REGS];
        u32 rtlchip;
        u8 pi_enabled:1;
-       u8 iqk_initialized:1;
        u8 int_buf[USB_INTR_CONTENT_LENGTH];
 };