diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 11:55:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-12 12:05:01 +0200 |
commit | 3f7b9c34671e07e75cfc41360e643677c251d594 (patch) | |
tree | 718f1ca640fb00687634210603b9cbd7a51d2c00 /drivers | |
parent | 0e053e4ba119553a3635d8fa0543839c3c788ca6 (diff) | |
download | barebox-3f7b9c34671e07e75cfc41360e643677c251d594.tar.gz barebox-3f7b9c34671e07e75cfc41360e643677c251d594.tar.xz |
phy: core: drop useless else clause
ret is not read below, so we don't need this override.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220905095557.596891-27-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/phy-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 8a57bd1aa9..3a36f0a1b2 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; |