]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: remove shadowed variable in sdio_halinit
authorHaroen Tmimi <tmimiharoen@gmail.com>
Tue, 10 Feb 2026 18:56:30 +0000 (19:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 15:17:08 +0000 (16:17 +0100)
commit134fdc1c972840ac57e77e6f5b2b62f3c433afae
tree70f13dc4997cdfa8eb6fe1ff90f7b10c3b26d108
parent8fd94d0e44f06c40e2cff6296807713a87a1590e
staging: rtl8723bs: remove shadowed variable in sdio_halinit

The variable 'bMacPwrCtrlOn' was redeclared in the function
CardEnable, shadowing a variable of the same name declared at the
top of the function (line 21).

Remove the redundant 'u8' type declaration to use the existing outer
variable and resolve a -Wshadow warning.

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