84573af23eea65cc3b2fb5afee5b50365b163c07
[openwrt/openwrt.git] /
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
6 The pointer hash is being initialized with a value that is never read
7 and is being re-assigned a little later on. The assignment is
8 redundant and hence can be removed.
9
10 Addresses-Coverity: ("Unused value")
11 Signed-off-by: Colin Ian King <colin.king@canonical.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
13 ---
14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 1 -
15 1 file changed, 1 deletion(-)
16
17 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
18 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
19 @@ -1468,7 +1468,6 @@ static int brcmf_msgbuf_stats_read(struc
20 seq_printf(seq, "\nh2d_flowrings: depth %u\n",
21 BRCMF_H2D_TXFLOWRING_MAX_ITEM);
22 seq_puts(seq, "Active flowrings:\n");
23 - hash = msgbuf->flow->hash;
24 for (i = 0; i < msgbuf->flow->nrofrings; i++) {
25 if (!msgbuf->flow->rings[i])
26 continue;