Skip to content

Commit 3b51cc7

Browse files
Colin Ian Kingdavem330
authored andcommitted
lan78xx: remove redundant initialization of pointer 'phydev'
Pointer phydev is initialized and this value is never read, phydev is immediately updated to a new value, hence this initialization is redundant and can be removed Cleans up clang warning: drivers/net/usb/lan78xx.c:2009:21: warning: Value stored to 'phydev' during its initialization is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f14d244 commit 3b51cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/lan78xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ static int lan78xx_phy_init(struct lan78xx_net *dev)
20062006
{
20072007
int ret;
20082008
u32 mii_adv;
2009-
struct phy_device *phydev = dev->net->phydev;
2009+
struct phy_device *phydev;
20102010

20112011
phydev = phy_find_first(dev->mdiobus);
20122012
if (!phydev) {

0 commit comments

Comments
 (0)