net: b44: remove redundant assignment to variable reg
authorColin Ian King <colin.king@canonical.com>
Fri, 11 Oct 2019 17:22:32 +0000 (18:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Oct 2019 16:57:55 +0000 (12:57 -0400)
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>
drivers/net/ethernet/broadcom/b44.c

index 97ab0dd..035dbb1 100644 (file)
@@ -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);
        }