diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-11 18:22:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-15 12:57:55 -0400 |
commit | f58a887ebc990b4d01a5a53330be06c384e089c4 (patch) | |
tree | 84c912ce2cfe211231792eb82c37de38dd19d6ff | |
parent | 85a83a8fca7f347b1dc0b637a0d6487fd76aff5c (diff) |
net: b44: remove redundant assignment to variable reg
The variable reg is being assigned a value that is never read
and is being re-assigned in the following for-loop. 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: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/b44.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c index 97ab0dd25552..035dbb1b2c98 100644 --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c @@ -511,9 +511,6 @@ static void b44_stats_update(struct b44 *bp) *val++ += br32(bp, reg); } - /* Pad */ - reg += 8*4UL; - for (reg = B44_RX_GOOD_O; reg <= B44_RX_NPAUSE; reg += 4UL) { *val++ += br32(bp, reg); } |