From: Dan Carpenter Date: Wed, 9 Aug 2017 21:35:50 +0000 (+0300) Subject: phylink: Fix an uninitialized variable bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d18c2a1b159d107e341206500747dceabe8501fb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git phylink: Fix an uninitialized variable bug "ret" isn't necessarily initialized here. Fixes: 9525ae83959b ("phylink: add phylink infrastructure") Signed-off-by: Dan Carpenter Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- 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);