Subject: Re: [PATCH v2] brcmfmac: check return value of driver_for_each_device()

From: Kalle Valo <[email-masked]>
Date: Thu, 24 Sep 2020 15:48:13 +0000 (UTC)

Zhang Changzhong <[email-masked]> wrote:

> Fixes the following W=1 kernel build warning(s):
> 
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1576:6: warning:
>  variable 'ret' set but not used [-Wunused-but-set-variable]
>   1576 |  int ret;
>        |      ^~~
> 
> driver_for_each_device() has been declared with __must_check, so the
> return value should be checked.
> 
> Signed-off-by: Zhang Changzhong <[email-masked]>

Patch applied to wireless-drivers-next.git, thanks.

72a398a63b88 brcmfmac: check return value of driver_for_each_device()

-- 
https://patchwork.kernel.org/patch/11786561/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches