linux_dsm_epyc7002/drivers/net/wireless/st/cw1200
Arnd Bergmann 7fc1503c90 cw1200: fix bogus maybe-uninitialized warning
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>
2016-11-17 08:47:58 +02:00
..
bh.c
bh.h
cw1200_sdio.c
cw1200_spi.c wireless: cw1200: use __maybe_unused to hide pm functions_ 2016-03-08 12:32:52 +02:00
cw1200.h
debug.c
debug.h
fwio.c
fwio.h
hwbus.h
hwio.c
hwio.h
Kconfig
main.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
Makefile
pm.c
pm.h wireless: cw1200: use __maybe_unused to hide pm functions_ 2016-03-08 12:32:52 +02:00
queue.c
queue.h
scan.c mac80211: Add support for beacon report radio measurement 2016-07-06 14:53:19 +02:00
scan.h
sta.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
sta.h mac80211: pass block ack session timeout to to driver 2016-01-14 11:13:17 +01:00
txrx.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
txrx.h
wsm.c cw1200: fix bogus maybe-uninitialized warning 2016-11-17 08:47:58 +02:00
wsm.h