[PATCH 26/32] phy: core: drop useless else clause

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Sep 5 02:55:51 PDT 2022


ret is not read below, so we don't need this override.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 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




More information about the barebox mailing list