354-v5.4-brcmfmac-remove-redundant-assignment-to-pointer-hash.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. From 73c742bb9c9ba30871fdd5c730d5ca8b6712833a Mon Sep 17 00:00:00 2001
  2. From: Colin Ian King <colin.king@canonical.com>
  3. Date: Fri, 9 Aug 2019 18:22:17 +0100
  4. Subject: [PATCH] brcmfmac: remove redundant assignment to pointer hash
  5. The pointer hash is being initialized with a value that is never read
  6. and is being re-assigned a little later on. The assignment is
  7. redundant and hence can be removed.
  8. Addresses-Coverity: ("Unused value")
  9. Signed-off-by: Colin Ian King <colin.king@canonical.com>
  10. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  11. ---
  12. drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 1 -
  13. 1 file changed, 1 deletion(-)
  14. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
  15. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
  16. @@ -1476,7 +1476,6 @@ static int brcmf_msgbuf_stats_read(struc
  17. seq_printf(seq, "\nh2d_flowrings: depth %u\n",
  18. BRCMF_H2D_TXFLOWRING_MAX_ITEM);
  19. seq_puts(seq, "Active flowrings:\n");
  20. - hash = msgbuf->flow->hash;
  21. for (i = 0; i < msgbuf->flow->nrofrings; i++) {
  22. if (!msgbuf->flow->rings[i])
  23. continue;