rtl8xxxu: Do not backup RF_MODE_AG when it's never being used
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 14 Apr 2016 18:59:02 +0000 (14:59 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Apr 2016 18:36:43 +0000 (21:36 +0300)
This was expired by the vendor driver, but we never ended up using the
backed up value.

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 ef93f6285aa23fd168b87aeb1fa315b9ec3d83a3..c12a4c8cb63a3e68157edd039d9af1ce36711b3a 100644 (file)
@@ -7667,9 +7667,6 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
        if (priv->rtl_chip != RTL8192E)
                rtl8xxxu_write32(priv, REG_FPGA0_XA_RF_INT_OE, 0x66f60210);
 
-       priv->rf_mode_ag[0] = rtl8xxxu_read_rfreg(priv, RF_A,
-                                                 RF6052_REG_MODE_AG);
-
        if (!macpower) {
                /*
                 * Set TX buffer boundary
index f66e20d4449bd85d4e5001adc03f6ae5f4437cf1..b87cd2bef53cb08357fb95b08e61fccb9dea2022 100644 (file)
@@ -1228,7 +1228,6 @@ struct rtl8xxxu_priv {
        u8 rf_paths;
        u8 rx_paths;
        u8 tx_paths;
-       u32 rf_mode_ag[2];
        u32 rege94;
        u32 rege9c;
        u32 regeb4;