summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-03-18 13:23:24 +1100
committerKalle Valo <kvalo@codeaurora.org>2016-04-07 19:37:41 +0300
commit9e12904a953c46abc87b0ea157be8de90205b70d (patch)
treed54401ae3d104dd1e53a5c2a82afa830113d7e23 /drivers/net/wireless/broadcom
parentcfbfbd13695c8f9a93b1ad3edeeedacbb86dbe5c (diff)
downloadlinux-stable-9e12904a953c46abc87b0ea157be8de90205b70d.tar.gz
linux-stable-9e12904a953c46abc87b0ea157be8de90205b70d.tar.bz2
linux-stable-9e12904a953c46abc87b0ea157be8de90205b70d.zip
brcmfmac: Delete unnecessary variable initialisation
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>
Diffstat (limited to 'drivers/net/wireless/broadcom')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
index cd92ba77ecfd..48d7467d270e 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
@@ -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]);