We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 581cfd2 commit 23c2b22Copy full SHA for 23c2b22
1 file changed
drivers/net/phy/as21xxx/as21xxx.c
@@ -1527,9 +1527,7 @@ static int aeon_gen1_match_phy_device(struct phy_device *phydev,
1527
return phy_id == phydrv->phy_id;
1528
}
1529
1530
- if (phy_id)
1531
- phydev->phy_id = phy_id;
1532
-
+ phydev->phy_id = phy_id;
1533
aeon_cl45_write(phydev, MDIO_MMD_VEND1, VEND1_PTP_CLK, 0x48);
1534
if (phydrv->phy_id == PHY_ID_AS21XXX)
1535
aeon_dbg(phydev,
@@ -1553,9 +1551,7 @@ static int aeon_gen2_match_phy_device(struct phy_device *phydev,
1553
1551
return ret;
1554
1552
1555
1556
1557
1558
1559
aeon_dbg(phydev, "gen2 match: read PHY ID=0x%08x, trying driver=%s (0x%08x)\n",
1560
phy_id, phydrv->name, phydrv->phy_id);
1561
if (phy_id == phydrv->phy_id)
0 commit comments