Re: ath10k: sdio: fix compile warning

2017-08-03 Thread Kalle Valo
andler’: > drivers/net/wireless/ath/ath10k/sdio.c:1331: warning: ‘ret’ may be used > uninitialized in this function > > Signed-off-by: Erik Stromdahl <erik.stromd...@gmail.com> > Signed-off-by: Kalle Valo <kv...@qca.qualcomm.com> Patch applied to ath-next branch of ath

[PATCH] ath10k: sdio: fix compile warning

2017-07-08 Thread Erik Stromdahl
As suggested by Arnd Bergmann, replace "while (time_before_...) {}" with "do {} while (time_before_...)" This fixes the following warnings detected by gcc 4.1.2: drivers/net/wireless/ath/ath10k/sdio.c: In function ‘ath10k_sdio_mbox_rxmsg_pending_handler’: