rpcd: iwinfo plugin fixes
[openwrt.git] / package / kernel / mac80211 / patches / 348-brcmfmac-Delete-unnecessary-variable-initialisation.patch
1 From: Markus Elfring <elfring@users.sourceforge.net>
2 Date: Fri, 18 Mar 2016 13:23:24 +1100
3 Subject: [PATCH] brcmfmac: Delete unnecessary variable initialisation
4
5 In brcmf_sdio_download_firmware(), bcmerror is set by the call to
6 brcmf_sdio_download_code_file(), before it's checked in the following
7 line.
8
9 Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
10 Acked-by: Arend van Spriel <arend@broadcom.com>
11 [Rewrote commit message]
12 Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
13 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
14 ---
15
16 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
17 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
18 @@ -3258,7 +3258,7 @@ static int brcmf_sdio_download_firmware(
19                                         const struct firmware *fw,
20                                         void *nvram, u32 nvlen)
21  {
22 -       int bcmerror = -EFAULT;
23 +       int bcmerror;
24         u32 rstvec;
25  
26         sdio_claim_host(bus->sdiodev->func[1]);