summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2013-12-19 20:01:44 +0530
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 07:29:18 +0200
commit30348e0ed806ed8fb33038e3c3a080fc741cfe55 (patch)
tree9dd7a588aab5c8c487faba74c8eedbb3590f9b49
parent94febdeed5961181cf6216ff5953c7c0664ba8a0 (diff)
downloadlinux-3.10-30348e0ed806ed8fb33038e3c3a080fc741cfe55.tar.gz
linux-3.10-30348e0ed806ed8fb33038e3c3a080fc741cfe55.tar.bz2
linux-3.10-30348e0ed806ed8fb33038e3c3a080fc741cfe55.zip
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 <kishon@ti.com> [backport from upstream commit d18c960430ca341e5c12a023c805ff8fd10032a6] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ib80f6930d91c01a1e2c9f70ae4e61519eadd37d1
-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 33fcbcc5561..645c867c125 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");