Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1702963 > unrolled thread
| Started by | Kalle Valo <kvalo@qca.qualcomm.com> |
|---|---|
| First post | 2017-08-03 13:40 +0200 |
| Last post | 2017-08-03 13:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: ath10k: sdio: fix compile warning Kalle Valo <kvalo@qca.qualcomm.com> - 2017-08-03 13:40 +0200
| From | Kalle Valo <kvalo@qca.qualcomm.com> |
|---|---|
| Date | 2017-08-03 13:40 +0200 |
| Subject | Re: ath10k: sdio: fix compile warning |
| Message-ID | <uamDT-7Ls-5@gated-at.bofh.it> |
Erik Stromdahl <erik.stromdahl@gmail.com> wrote:
> 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’:
> drivers/net/wireless/ath/ath10k/sdio.c:676: warning: ‘ret’ may be used uninitialized in this function
>
> ...
>
> drivers/net/wireless/ath/ath10k/sdio.c: In function
> ‘ath10k_sdio_irq_handler’:
> drivers/net/wireless/ath/ath10k/sdio.c:1331: warning: ‘ret’ may be used uninitialized in this function
>
> Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Patch applied to ath-next branch of ath.git, thanks.
433ef1b22678 ath10k: sdio: fix compile warning
--
https://patchwork.kernel.org/patch/9831499/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Back to top | Article view | linux.kernel
csiph-web