staging: rtl8192e: Remove unused variable last_ratr
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 2 Oct 2023 17:53:26 +0000 (19:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 07:59:05 +0000 (09:59 +0200)
last_ratr is written but never evaluated. Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2b91a8f4ec6184c2f16b8f65bdf65c69a4d17458.1696266964.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
drivers/staging/rtl8192e/rtllib.h

index 8f5e4b9323501d8507a5a2ee3611e74583e69bfa..52b9393b55e70bbc22a01affd44176ca1a1c357d 100644 (file)
@@ -370,8 +370,6 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev)
                        ratr_value &= ~(RATE_ALL_OFDM_2SS);
                        rtl92e_writel(dev, RATR0, ratr_value);
                        rtl92e_writeb(dev, UFWP, 1);
-
-                       pra->last_ratr = target_ratr;
                }
 
        } else {
index 004818520ea844c21a463f544623252e005f6552..1e474691aa88aab2705f58b44767aa25b93cf67a 100644 (file)
@@ -1164,7 +1164,6 @@ struct rate_adaptive {
        u8                              ping_rssi_enable;
        u32                             ping_rssi_ratr;
        u32                             ping_rssi_thresh_for_ra;
-       u32                             last_ratr;
        u8                              PreRATRState;
 
 };