mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
net: phy: motorcomm: uninitialized variables in yt8531_link_change_notify()
These booleans are never set to false, but are just used without being
initialized.
Fixes: 4ac94f728a
("net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Frank Sae <Frank.Sae@motor-comm.com>
Link: https://lore.kernel.org/r/Y+xd2yJet2ImHLoQ@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
0f19f514de
commit
9753613f73
@ -1533,10 +1533,10 @@ static int yt8531_config_init(struct phy_device *phydev)
|
||||
static void yt8531_link_change_notify(struct phy_device *phydev)
|
||||
{
|
||||
struct device_node *node = phydev->mdio.dev.of_node;
|
||||
bool tx_clk_1000_inverted = false;
|
||||
bool tx_clk_100_inverted = false;
|
||||
bool tx_clk_10_inverted = false;
|
||||
bool tx_clk_adj_enabled = false;
|
||||
bool tx_clk_1000_inverted;
|
||||
bool tx_clk_100_inverted;
|
||||
bool tx_clk_10_inverted;
|
||||
u16 val = 0;
|
||||
int ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user