staging: rtl8192e: Remove unused variable ScanDelay
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 1 Oct 2022 09:41:31 +0000 (11:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:19:26 +0000 (17:19 +0200)
ScanDelay is never evaluated. Remove resulting dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/13d0b993d077490c65768f2b11a631a447f8e86f.1664616227.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/rtl8192e/rtl_core.h

index f2cbec6eb08f29afbf68e17dd00dc61f98c6fbad..c3dcaa27fd2ea617c1c941c04f40c0a394ec10d7 100644 (file)
@@ -503,7 +503,6 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
                        priv->ChannelPlan = 0x0;
                break;
        case EEPROM_CID_Nettronix:
-               priv->ScanDelay = 100;
                priv->CustomerID = RT_CID_Nettronix;
                break;
        case EEPROM_CID_Pronet:
index ae0fcbbee2bb5aab8ddbaa11e87c06e2ec991788..f07f0fc690a378938dfdaf9371bc5c1b262741a6 100644 (file)
@@ -868,7 +868,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
        priv->rfa_txpowertrackingindex = 0;
        priv->rfc_txpowertrackingindex = 0;
        priv->CckPwEnl = 6;
-       priv->ScanDelay = 50;
        priv->ResetProgress = RESET_TYPE_NORESET;
        priv->force_reset = false;
        memset(priv->rtllib->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
index 763ed761bb38dc6d6ff5a4009a417395e7021fe6..c536131ecd5d485c88fb8d3f800b84788613cba7 100644 (file)
@@ -410,8 +410,6 @@ struct r8192_priv {
        short   chan;
        short   sens;
        short   max_sens;
-
-       u8 ScanDelay;
        bool ps_force;
 
        u32 irq_mask[2];