staging: rtl8192e: Remove unused variable RF_C_TxPwDiff
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 18 Jan 2023 20:00:07 +0000 (21:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:24:21 +0000 (14:24 +0100)
RF_C_TxPwDiff is set to a value and then never evaluated. Remove resulting
dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/bcace15cc05057ab310f807f27619ef6ff391d91.1674071236.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index aafe39e..ff66a97 100644 (file)
@@ -603,8 +603,6 @@ void rtl92e_set_tx_power(struct net_device *dev, u8 channel)
                        ant_pwr_diff = priv->tx_pwr_level_ofdm_24g_c[channel - 1]
                                       - priv->tx_pwr_level_ofdm_24g_a[channel - 1];
 
-                       priv->RF_C_TxPwDiff = ant_pwr_diff;
-
                        ant_pwr_diff &= 0xf;
 
                        priv->antenna_tx_pwr_diff[2] = 0;
index 12a869a..6662558 100644 (file)
@@ -476,7 +476,6 @@ struct r8192_priv {
        u8 tx_pwr_level_ofdm_24g_a[14];
        u8 tx_pwr_level_ofdm_24g_c[14];
        u8 legacy_ht_tx_pwr_diff;
-       s8              RF_C_TxPwDiff;
        u8 antenna_tx_pwr_diff[3];
 
        bool            dynamic_tx_high_pwr;