aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/phy/phy-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c
index 33fcbcc5561f..645c867c1257 100644
--- a/drivers/phy/phy-core.c
+++ b/drivers/phy/phy-core.c
@@ -210,7 +210,7 @@ EXPORT_SYMBOL_GPL(phy_exit);
210 210
211int phy_power_on(struct phy *phy) 211int phy_power_on(struct phy *phy)
212{ 212{
213 int ret = -ENOTSUPP; 213 int ret;
214 214
215 ret = phy_pm_runtime_get_sync(phy); 215 ret = phy_pm_runtime_get_sync(phy);
216 if (ret < 0 && ret != -ENOTSUPP) 216 if (ret < 0 && ret != -ENOTSUPP)
@@ -238,7 +238,7 @@ EXPORT_SYMBOL_GPL(phy_power_on);
238 238
239int phy_power_off(struct phy *phy) 239int phy_power_off(struct phy *phy)
240{ 240{
241 int ret = -ENOTSUPP; 241 int ret;
242 242
243 mutex_lock(&phy->mutex); 243 mutex_lock(&phy->mutex);
244 if (phy->power_count == 1 && phy->ops->power_off) { 244 if (phy->power_count == 1 && phy->ops->power_off) {
@@ -378,7 +378,7 @@ EXPORT_SYMBOL_GPL(of_phy_simple_xlate);
378struct phy *phy_get(struct device *dev, const char *string) 378struct phy *phy_get(struct device *dev, const char *string)
379{ 379{
380 int index = 0; 380 int index = 0;
381 struct phy *phy = NULL; 381 struct phy *phy;
382 382
383 if (string == NULL) { 383 if (string == NULL) {
384 dev_WARN(dev, "missing string\n"); 384 dev_WARN(dev, "missing string\n");