]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove redundant 'Adapter' variable in HalPhyRf_8723B
authorHaroen Tmimi <tmimiharoen@gmail.com>
Tue, 10 Feb 2026 18:50:44 +0000 (19:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:41:59 +0000 (15:41 +0100)
The variable Adapter was declared and initialized locally in
an if-statement, but it shadowed a variable of the same name and
value declared in the function scope (line 169).

Removing the inner declaration allows the code to use the existing
outer variable, resolving a -Wshadow warning.

Signed-off-by: Haroen Tmimi <tmimiharoen@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260210185044.53754-1-tmimiharoen@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c

index ed447daad3ad645e45ec493f0d87f21601c1b591..adf408647e588987afe2ed58f525589080cfc8e5 100644 (file)
@@ -198,8 +198,6 @@ void ODM_TxPwrTrackSetPwr_8723B(
        }
 
        if (Method == TXAGC) {
-               struct adapter *Adapter = pDM_Odm->Adapter;
-
                pDM_Odm->Remnant_OFDMSwingIdx[RFPath] = pDM_Odm->Absolute_OFDMSwingIdx[RFPath];
 
                pDM_Odm->Modify_TxAGC_Flag_PathA = true;