staging: rtl8192e: Remove unused variables nic_type and RxPower
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 21 Feb 2024 21:45:37 +0000 (22:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:02:41 +0000 (14:02 +0000)
Remove unused variables nic_type and RxPower as they are set and never
evaluated.

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

index 07218edab746dfefda28ca7b35eddd10c3f09da9..e7494b5487497bb986d800c0eb1fc95ebd1e7a61 100644 (file)
@@ -1295,7 +1295,6 @@ static void _rtl92e_query_rxphystatus(
                pwdb_all = rtl92e_rx_db_to_percent(rx_pwr_all);
 
                pstats->RxPWDBAll = precord_stats->RxPWDBAll = pwdb_all;
-               pstats->RxPower = precord_stats->RxPower =      rx_pwr_all;
                pstats->RecvSignalPower = rx_pwr_all;
                if (pdrvinfo->RxHT && pdrvinfo->RxRate >= DESC90_RATEMCS8 &&
                    pdrvinfo->RxRate <= DESC90_RATEMCS15)
index 705b94f0911e4159ea6421ff877aee33f7cf8a66..605bce803b5fc9da79343d6a38888b0b229824ad 100644 (file)
@@ -1500,8 +1500,6 @@ static void _rtl92e_rx_normal(struct net_device *dev)
        };
        unsigned int count = priv->rxringcount;
 
-       stats.nic_type = NIC_8192E;
-
        while (count--) {
                struct rx_desc *pdesc = &priv->rx_ring
                                        [priv->rx_idx];
index d764de9459e2de931de51830d11877d6c74c8b47..d238fce712a4fafeeb50077b6f5a02a23666fba3 100644 (file)
@@ -474,11 +474,9 @@ struct rtllib_rx_stats {
        u8  control;
        u8  mask;
        u16 len;
-       u8  nic_type;
        u16 Length;
        u8  SignalQuality;
        s32 RecvSignalPower;
-       s8  RxPower;
        u8  SignalStrength;
        u16 bHwError:1;
        u16 bCRC:1;