Return-path: Received: from mail-pf0-f171.google.com ([209.85.192.171]:36274 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361AbcCRCXd (ORCPT ); Thu, 17 Mar 2016 22:23:33 -0400 Received: by mail-pf0-f171.google.com with SMTP id u190so146112294pfb.3 for ; Thu, 17 Mar 2016 19:23:32 -0700 (PDT) From: Julian Calaby To: Kalle Valo Cc: Brett Rudley , Arend van Spriel , Franky Lin , Hante Meuleman , Pieter-Paul Giesberts , linux-wireless@vger.kernel.org, brcm80211-dev-list@broadcom.com, Markus Elfring Subject: [PATCH 07/19] brcmfmac: Delete unnecessary variable initialisation Date: Fri, 18 Mar 2016 13:23:24 +1100 Message-Id: (sfid-20160318_032335_772025_19983602) In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Markus Elfring 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 Acked-by: Arend van Spriel [Rewrote commit message] Signed-off-by: Julian Calaby --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index 43fd3f4..fa2179d 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -3261,7 +3261,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]); -- 2.7.0