347-brcmfmac-sdio-remove-unused-variable-retry_limit.patch 826 B

123456789101112131415161718192021222324
  1. From: Colin Ian King <colin.king@canonical.com>
  2. Date: Sun, 20 Mar 2016 17:34:52 +0000
  3. Subject: [PATCH] brcmfmac: sdio: remove unused variable retry_limit
  4. retry_limit has never been used during the life of this driver, so
  5. we may as well remove it as it is redundant.
  6. Signed-off-by: Colin Ian King <colin.king@canonical.com>
  7. Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
  8. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  9. ---
  10. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  11. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  12. @@ -535,9 +535,6 @@ static int qcount[NUMPRIO];
  13. #define RETRYCHAN(chan) ((chan) == SDPCM_EVENT_CHANNEL)
  14. -/* Retry count for register access failures */
  15. -static const uint retry_limit = 2;
  16. -
  17. /* Limit on rounding up frames */
  18. static const uint max_roundup = 512;