Skip to content

Commit 560c5bd

Browse files
radheyxilinxdavem330
authored andcommitted
net: emaclite: Remove xemaclite_mdio_setup return check
Errors are already reported in xemaclite_mdio_setup so avoid reporting it again. Signed-off-by: Radhey Shyam Pandey <[email protected]> Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bd45cbf commit 560c5bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/xilinx/xilinx_emaclite.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,7 @@ static int xemaclite_of_probe(struct platform_device *ofdev)
11431143
xemaclite_update_address(lp, ndev->dev_addr);
11441144

11451145
lp->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0);
1146-
rc = xemaclite_mdio_setup(lp, &ofdev->dev);
1147-
if (rc)
1148-
dev_warn(&ofdev->dev, "error registering MDIO bus\n");
1146+
xemaclite_mdio_setup(lp, &ofdev->dev);
11491147

11501148
dev_info(dev, "MAC address is now %pM\n", ndev->dev_addr);
11511149

0 commit comments

Comments
 (0)