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:
parent
35c7ad3567
commit
d18c2a1b15
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue