OSDN Git Service

staging: rtl8192e: Remove unused variable rfRxIQImbalance and rfRxAFE
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 11 Mar 2023 21:52:15 +0000 (22:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 08:37:01 +0000 (09:37 +0100)
Remove unused variable rfRxIQImbalance and rfRxAFE because they are just
once set and not used. Remove unused constants with commenting line.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/1d578fc962c938e76bc0df529a3c24bba7abe049.1678569965.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h

index a5d9989..a5c2ff5 100644 (file)
@@ -107,8 +107,6 @@ struct bb_reg_definition {
        u32 rfintfe;
        u32 rf3wireOffset;
        u32 rfHSSIPara2;
-       u32 rfRxIQImbalance;
-       u32 rfRxAFE;
        u32 rfTxIQImbalance;
        u32 rfTxAFE;
        u32 rfLSSIReadBack;
index 32806bc..5b63b9e 100644 (file)
@@ -373,16 +373,6 @@ static void _rtl92e_init_bb_rf_reg_def(struct net_device *dev)
        priv->phy_reg_def[RF90_PATH_C].rfHSSIPara2 = rFPGA0_XC_HSSIParameter2;
        priv->phy_reg_def[RF90_PATH_D].rfHSSIPara2 = rFPGA0_XD_HSSIParameter2;
 
-       priv->phy_reg_def[RF90_PATH_A].rfRxIQImbalance = rOFDM0_XARxIQImbalance;
-       priv->phy_reg_def[RF90_PATH_B].rfRxIQImbalance = rOFDM0_XBRxIQImbalance;
-       priv->phy_reg_def[RF90_PATH_C].rfRxIQImbalance = rOFDM0_XCRxIQImbalance;
-       priv->phy_reg_def[RF90_PATH_D].rfRxIQImbalance = rOFDM0_XDRxIQImbalance;
-
-       priv->phy_reg_def[RF90_PATH_A].rfRxAFE = rOFDM0_XARxAFE;
-       priv->phy_reg_def[RF90_PATH_B].rfRxAFE = rOFDM0_XBRxAFE;
-       priv->phy_reg_def[RF90_PATH_C].rfRxAFE = rOFDM0_XCRxAFE;
-       priv->phy_reg_def[RF90_PATH_D].rfRxAFE = rOFDM0_XDRxAFE;
-
        priv->phy_reg_def[RF90_PATH_A].rfTxIQImbalance = rOFDM0_XATxIQImbalance;
        priv->phy_reg_def[RF90_PATH_B].rfTxIQImbalance = rOFDM0_XBTxIQImbalance;
        priv->phy_reg_def[RF90_PATH_C].rfTxIQImbalance = rOFDM0_XCTxIQImbalance;
index d0ea7e0..78e90bf 100644 (file)
 #define rOFDM0_TRxPathEnable           0xc04
 #define rOFDM0_TRMuxPar                        0xc08
 #define rOFDM0_TRSWIsolation           0xc0c
-/* RxIQ DC offset, Rx digital filter, DC notch filter */
-#define rOFDM0_XARxAFE                 0xc10
-#define rOFDM0_XARxIQImbalance         0xc14 /* RxIQ imbalance matrix */
-#define rOFDM0_XBRxAFE                 0xc18
-#define rOFDM0_XBRxIQImbalance         0xc1c
-#define rOFDM0_XCRxAFE                 0xc20
-#define rOFDM0_XCRxIQImbalance         0xc24
-#define rOFDM0_XDRxAFE                 0xc28
-#define rOFDM0_XDRxIQImbalance         0xc2c
 #define rOFDM0_RxDetector1             0xc30 /* PD, BW & SBD */
 #define rOFDM0_RxDetector2             0xc34 /* SBD */
 #define rOFDM0_RxDetector3             0xc38 /* Frame Sync */