]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commit532fc90fa51ab2044917f788ccb8f8c2dce9a283
tree8210da14895a472325500e7d1d2f598bb5662c61
parentc6b7a9a248e9257ada0a7bf3bd3ed1be7efb51b7
staging: rtl8723bs: remove redundant 'Adapter' variable in HalPhyRf_8723B

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