From: Kishon Vijay Abraham I Date: Thu, 19 Dec 2013 14:31:44 +0000 (+0530) Subject: phy: phy-core.c: remove unnecessary initialization of local variables X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d18c960430ca341e5c12a023c805ff8fd10032a6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git phy: phy-core.c: remove unnecessary initialization of local variables There were a few places where variables are initialized unncessarily. Remove those initializations. Signed-off-by: Kishon Vijay Abraham I --- 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); int phy_power_on(struct phy *phy) { - int ret = -ENOTSUPP; + int ret; ret = phy_pm_runtime_get_sync(phy); if (ret < 0 && ret != -ENOTSUPP) @@ -238,7 +238,7 @@ EXPORT_SYMBOL_GPL(phy_power_on); int phy_power_off(struct phy *phy) { - int ret = -ENOTSUPP; + int ret; mutex_lock(&phy->mutex); if (phy->power_count == 1 && phy->ops->power_off) { @@ -378,7 +378,7 @@ EXPORT_SYMBOL_GPL(of_phy_simple_xlate); struct phy *phy_get(struct device *dev, const char *string) { int index = 0; - struct phy *phy = NULL; + struct phy *phy; if (string == NULL) { dev_WARN(dev, "missing string\n");