brcmfmac: Delete unnecessary variable initialisation
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 18 Mar 2016 02:23:24 +0000 (13:23 +1100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Apr 2016 16:37:41 +0000 (19:37 +0300)
In brcmf_sdio_download_firmware(), bcmerror is set by the call to
brcmf_sdio_download_code_file(), before it's checked in the following
line.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Arend van Spriel <arend@broadcom.com>
[Rewrote commit message]
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c

index cd92ba7..48d7467 100644 (file)
@@ -3258,7 +3258,7 @@ static int brcmf_sdio_download_firmware(struct brcmf_sdio *bus,
                                        const struct firmware *fw,
                                        void *nvram, u32 nvlen)
 {
-       int bcmerror = -EFAULT;
+       int bcmerror;
        u32 rstvec;
 
        sdio_claim_host(bus->sdiodev->func[1]);