Commit d18c2a1b authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

phylink: Fix an uninitialized variable bug

"ret" isn't necessarily initialized here.

Fixes: 9525ae83 ("phylink: add phylink infrastructure")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35c7ad35
...@@ -958,7 +958,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl, ...@@ -958,7 +958,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
} }
mutex_unlock(&pl->state_mutex); mutex_unlock(&pl->state_mutex);
return ret; return 0;
} }
EXPORT_SYMBOL_GPL(phylink_ethtool_ksettings_set); EXPORT_SYMBOL_GPL(phylink_ethtool_ksettings_set);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment