mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
7fc1503c90
On x86, the cw1200 driver produces a rather silly warning about the possible use of the 'ret' variable without an initialization presumably after being confused by the architecture specific definition of WARN_ON: drivers/net/wireless/st/cw1200/wsm.c: In function ‘wsm_handle_rx’: drivers/net/wireless/st/cw1200/wsm.c:1457:9: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized] We have already checked that 'count' is larger than 0 here, so we know that 'ret' is initialized. Changing the 'for' loop into do/while also makes this clear to the compiler. Suggested-by: David Laight <David.Laight@ACULAB.COM> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> |
||
---|---|---|
.. | ||
bh.c | ||
bh.h | ||
cw1200_sdio.c | ||
cw1200_spi.c | ||
cw1200.h | ||
debug.c | ||
debug.h | ||
fwio.c | ||
fwio.h | ||
hwbus.h | ||
hwio.c | ||
hwio.h | ||
Kconfig | ||
main.c | ||
Makefile | ||
pm.c | ||
pm.h | ||
queue.c | ||
queue.h | ||
scan.c | ||
scan.h | ||
sta.c | ||
sta.h | ||
txrx.c | ||
txrx.h | ||
wsm.c | ||
wsm.h |