aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-08-10 00:35:50 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-11 13:58:01 -0700
commitd18c2a1b159d107e341206500747dceabe8501fb (patch)
tree35c88ee3494de69d6a4455d47052a088bbd20c4d
parentliquidio: removed check for queue size alignment (diff)
downloadlinux-dev-d18c2a1b159d107e341206500747dceabe8501fb.tar.xz
linux-dev-d18c2a1b159d107e341206500747dceabe8501fb.zip
phylink: Fix an uninitialized variable bug
"ret" isn't necessarily initialized here. Fixes: 9525ae83959b ("phylink: add phylink infrastructure") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/phylink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 32917bdd1432..bcb4755bcd95 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -958,7 +958,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
}
mutex_unlock(&pl->state_mutex);
- return ret;
+ return 0;
}
EXPORT_SYMBOL_GPL(phylink_ethtool_ksettings_set);