staging: rtl8192e: Remove unused variable rate_adaptive_disabled
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 2 Oct 2023 17:53:32 +0000 (19:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 07:59:05 +0000 (09:59 +0200)
rate_adaptive_disabled is initialized to 0 and unchanged. The equation
results accordingly. Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/31ba05bce9966dfac15cac15aa0e79cf36fad27f.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 52b9393b55e70bbc22a01affd44176ca1a1c357d..01abe1e484683451d10319195ad049dfcd04abad 100644 (file)
@@ -284,9 +284,6 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev)
        if (!priv->up)
                return;
 
-       if (pra->rate_adaptive_disabled)
-               return;
-
        if (priv->rtllib->mode != WIRELESS_MODE_N_24G)
                return;
 
index 1e474691aa88aab2705f58b44767aa25b93cf67a..bf4ec38efa35d9f241621cd04d2c69a023c4de82 100644 (file)
@@ -1146,7 +1146,6 @@ struct sw_cam_table {
 
 #define   TOTAL_CAM_ENTRY                              32
 struct rate_adaptive {
-       u8                              rate_adaptive_disabled;
        u8                              ratr_state;
        u16                             reserve;