net: phy: do not print dump stack if device was removed
In case phy_state_machine() works on top of USB device, we can get -ENODEV at any point. So, be less noisy if device was removed. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d275afb663
commit
06edf1a940
|
@ -1136,6 +1136,9 @@ void phy_state_machine(struct work_struct *work)
|
|||
else if (do_suspend)
|
||||
phy_suspend(phydev);
|
||||
|
||||
if (err == -ENODEV)
|
||||
return;
|
||||
|
||||
if (err < 0)
|
||||
phy_error(phydev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue