348-brcmfmac-Delete-unnecessary-variable-initialisation.patch 902 B

1234567891011121314151617181920212223242526
  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. In brcmf_sdio_download_firmware(), bcmerror is set by the call to
  5. brcmf_sdio_download_code_file(), before it's checked in the following
  6. line.
  7. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
  8. Acked-by: Arend van Spriel <arend@broadcom.com>
  9. [Rewrote commit message]
  10. Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  14. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  15. @@ -3258,7 +3258,7 @@ static int brcmf_sdio_download_firmware(
  16. const struct firmware *fw,
  17. void *nvram, u32 nvlen)
  18. {
  19. - int bcmerror = -EFAULT;
  20. + int bcmerror;
  21. u32 rstvec;
  22. sdio_claim_host(bus->sdiodev->func[1]);