Skip to content

Commit f58a887

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 85a83a8 commit f58a887

File tree

1 file changed

+0
-3
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+0
-3
lines changed

drivers/net/ethernet/broadcom/b44.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ static void b44_stats_update(struct b44 *bp)
511511
*val++ += br32(bp, reg);
512512
}
513513

514-
/* Pad */
515-
reg += 8*4UL;
516-
517514
for (reg = B44_RX_GOOD_O; reg <= B44_RX_NPAUSE; reg += 4UL) {
518515
*val++ += br32(bp, reg);
519516
}

0 commit comments

Comments
 (0)