diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-09-29 14:58:53 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-09-29 14:58:53 +0200 |
commit | bc004132213820368cc3af1e54e18f5cdb760972 (patch) | |
tree | 499f23dda28368b36385209c3ceb0a5227ab9fad /package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch | |
parent | 396e838bd6a8e8df8ea2f0fdb8b70be449682b8f (diff) | |
download | upstream-bc004132213820368cc3af1e54e18f5cdb760972.tar.gz upstream-bc004132213820368cc3af1e54e18f5cdb760972.tar.bz2 upstream-bc004132213820368cc3af1e54e18f5cdb760972.zip |
mac80211: brcmfmac: backport patches that were skipped previously #2
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch')
-rw-r--r-- | package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch b/package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch new file mode 100644 index 0000000000..d399b264ea --- /dev/null +++ b/package/kernel/mac80211/patches/348-brcmfmac-Delete-unnecessary-variable-initialisation.patch @@ -0,0 +1,26 @@ +From: Markus Elfring <elfring@users.sourceforge.net> +Date: Fri, 18 Mar 2016 13:23:24 +1100 +Subject: [PATCH] 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> +--- + +--- 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( + const struct firmware *fw, + void *nvram, u32 nvlen) + { +- int bcmerror = -EFAULT; ++ int bcmerror; + u32 rstvec; + + sdio_claim_host(bus->sdiodev->func[1]); |