ret is not read below, so we don't need this override. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/phy/phy-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 8a57bd1aa9d4..3a36f0a1b26d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -169,8 +169,6 @@ int phy_power_on(struct phy *phy) dev_err(&phy->dev, "phy poweron failed --> %d\n", ret); goto out; } - } else { - ret = 0; /* Override possible ret == -ENOTSUPP */ } ++phy->power_count; -- 2.30.2