phylink: Fix an uninitialized variable bug

"ret" isn't necessarily initialized here.

Fixes: 9525ae8395 ("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>
This commit is contained in:
Dan Carpenter 2017-08-10 00:35:50 +03:00 committed by David S. Miller
parent 35c7ad3567
commit d18c2a1b15

View file

@ -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);