Skip to content

Commit 2368a87

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: ethernet: sun: remove redundant assignment to variable err
The variable err is being assigned with a value that is never read and it is being updated in the next statement with a new value. The assignment is redundant and 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 a51df9f commit 2368a87

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/ethernet/sun

1 file changed

+0
-2
lines changed

drivers/net/ethernet/sun/niu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,6 @@ static int link_status_1g_rgmii(struct niu *np, int *link_up_p)
12171217

12181218
spin_lock_irqsave(&np->lock, flags);
12191219

1220-
err = -EINVAL;
1221-
12221220
err = mii_read(np, np->phy_addr, MII_BMSR);
12231221
if (err < 0)
12241222
goto out;

0 commit comments

Comments
 (0)