Skip to content

Commit 0ed9704

Browse files
Baruch SiachPaolo Abeni
authored andcommitted
net: phy: marvell10g: fix return value on error
Return back the error value that we get from phy_read_mmd(). Fixes: c84786f ("net: phy: marvell10g: read copper results from CSSR1") Signed-off-by: Baruch Siach <[email protected]> Reviewed-by: Marek Behún <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/r/f47cb031aeae873bb008ba35001607304a171a20.1650868058.git.baruch@tkos.co.il Signed-off-by: Paolo Abeni <[email protected]>
1 parent acac054 commit 0ed9704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/marvell10g.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ static int mv3310_read_status_copper(struct phy_device *phydev)
880880

881881
cssr1 = phy_read_mmd(phydev, MDIO_MMD_PCS, MV_PCS_CSSR1);
882882
if (cssr1 < 0)
883-
return val;
883+
return cssr1;
884884

885885
/* If the link settings are not resolved, mark the link down */
886886
if (!(cssr1 & MV_PCS_CSSR1_RESOLVED)) {

0 commit comments

Comments
 (0)