[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1669716458-15327-1-git-send-email-wangyufen@huawei.com>
Date: Tue, 29 Nov 2022 18:07:38 +0800
From: Wang Yufen <wangyufen@...wei.com>
To: <aspriel@...il.com>, <franky.lin@...adcom.com>,
<hante.meuleman@...adcom.com>, <kvalo@...nel.org>,
<davem@...emloft.net>
CC: <linux-wireless@...r.kernel.org>,
<brcm80211-dev-list.pdl@...adcom.com>,
<SHA-cyfmac-dev-list@...ineon.com>, <netdev@...r.kernel.org>,
<arend@...adcom.com>, Wang Yufen <wangyufen@...wei.com>
Subject: [PATCH] wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()
Fix to return a negative error code -EINVAL instead of 0.
Compile tested only.
Fixes: d380ebc9b6fb ("brcmfmac: rename chip download functions")
Signed-off-by: Wang Yufen <wangyufen@...wei.com>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
index 465d95d..329ec8ac 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
@@ -3414,6 +3414,7 @@ static int brcmf_sdio_download_firmware(struct brcmf_sdio *bus,
/* Take arm out of reset */
if (!brcmf_chip_set_active(bus->ci, rstvec)) {
brcmf_err("error getting out of ARM core reset\n");
+ bcmerror = -EINVAL;
goto err;
}
--
1.8.3.1
Powered by blists - more mailing lists