staging: r8188eu: EntryMaxUndecoratedSmoothedPWDB is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 22 Jan 2022 17:05:44 +0000 (18:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:28:41 +0000 (16:28 +0100)
The variable EntryMaxUndecoratedSmoothedPWDB in struct dm_priv
is set but not used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220122170547.68378-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c
drivers/staging/r8188eu/include/rtl8188e_dm.h

index 8156e4acaa09cf24ac9ac6265926ad7622945dbe..7de0f458d788e9cd110596516ca5fcffc9a4a3dd 100644 (file)
@@ -494,11 +494,6 @@ static void odm_RSSIMonitorCheck(struct odm_dm_struct *pDM_Odm)
                }
        }
 
-       if (tmpEntryMaxPWDB != 0)       /*  If associated entry is found */
-               pdmpriv->EntryMaxUndecoratedSmoothedPWDB = tmpEntryMaxPWDB;
-       else
-               pdmpriv->EntryMaxUndecoratedSmoothedPWDB = 0;
-
        if (tmpEntryMinPWDB != 0xff) /*  If associated entry is found */
                pdmpriv->EntryMinUndecoratedSmoothedPWDB = tmpEntryMinPWDB;
        else
index 0b3a9a1a4e5cc668f28709f78278e5d3849b1e1e..d62cdfc2db208a8549fc0f8e0a93c9bbab183628 100644 (file)
@@ -12,9 +12,8 @@ enum{
 struct dm_priv {
        u32     InitODMFlag;
 
-       /*  Upper and Lower Signal threshold for Rate Adaptive*/
+       /* Lower Signal threshold for Rate Adaptive */
        int     EntryMinUndecoratedSmoothedPWDB;
-       int     EntryMaxUndecoratedSmoothedPWDB;
        int     MinUndecoratedPWDBForDM;
 };