staging: r8188eu: BTRxRSSIPercentage is set but never used
authorMichael Straube <straube.linux@gmail.com>
Tue, 19 Oct 2021 13:51:32 +0000 (15:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 17:32:48 +0000 (19:32 +0200)
BTRxRSSIPercentage is set but never used, remove it from structure
phy_info.

Acked-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211019135137.9893-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm_HWConfig.c
drivers/staging/r8188eu/include/rtw_recv.h

index d83ef15..4772c2c 100644 (file)
@@ -60,7 +60,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,
 {
        u8 i, Max_spatial_stream;
        s8 rx_pwr[4], rx_pwr_all = 0;
-       u8 EVM, PWDB_ALL = 0, PWDB_ALL_BT;
+       u8 EVM, PWDB_ALL = 0;
        u8 RSSI, total_rssi = 0;
        u8 isCCKrate = 0;
        u8 rf_rx_num = 0;
@@ -136,7 +136,6 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,
                }
 
                pPhyInfo->RxPWDBAll = PWDB_ALL;
-               pPhyInfo->BTRxRSSIPercentage = PWDB_ALL;
                pPhyInfo->recvpower = rx_pwr_all;
                /*  (3) Get Signal Quality (EVM) */
                if (pPktinfo->bPacketMatchBSSID) {
@@ -188,10 +187,8 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm,
                rx_pwr_all = (((pPhyStaRpt->cck_sig_qual_ofdm_pwdb_all) >> 1) & 0x7f) - 110;
 
                PWDB_ALL = odm_QueryRxPwrPercentage(rx_pwr_all);
-               PWDB_ALL_BT = PWDB_ALL;
 
                pPhyInfo->RxPWDBAll = PWDB_ALL;
-               pPhyInfo->BTRxRSSIPercentage = PWDB_ALL_BT;
                pPhyInfo->RxPower = rx_pwr_all;
                pPhyInfo->recvpower = rx_pwr_all;
 
index 0b1fc75..1e28ec7 100644 (file)
@@ -78,7 +78,6 @@ struct phy_info {
 /*  Real power in dBm for this packet, no beautification and aggregation.
  * Keep this raw info to be used for the other procedures. */
        s8      recvpower;
-       u8      BTRxRSSIPercentage;
        u8      SignalStrength; /*  in 0-100 index. */
        u8      RxPwr[MAX_PATH_NUM_92CS];/* per-path's pwdb */
        u8      RxSNR[MAX_PATH_NUM_92CS];/* per-path's SNR */