brcmfmac: remove redundant assignment to pointer hash
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Aug 2019 17:22:17 +0000 (18:22 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:38:23 +0000 (16:38 +0300)
The pointer hash is being initialized with a value that is never read
and is being re-assigned a little later on. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c

index 8428be8b8d430b1dbaa075ce51407c17463db978..e3dd8623be4ecf339b9e9e8e3039fbdaa9e24845 100644 (file)
@@ -1468,7 +1468,6 @@ static int brcmf_msgbuf_stats_read(struct seq_file *seq, void *data)
        seq_printf(seq, "\nh2d_flowrings: depth %u\n",
                   BRCMF_H2D_TXFLOWRING_MAX_ITEM);
        seq_puts(seq, "Active flowrings:\n");
-       hash = msgbuf->flow->hash;
        for (i = 0; i < msgbuf->flow->nrofrings; i++) {
                if (!msgbuf->flow->rings[i])
                        continue;