mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue