Commit 9753613f authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski

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: 4ac94f72 ("net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarFrank Sae <Frank.Sae@motor-comm.com>
Link: https://lore.kernel.org/r/Y+xd2yJet2ImHLoQ@kiliSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0f19f514
...@@ -1533,10 +1533,10 @@ static int yt8531_config_init(struct phy_device *phydev) ...@@ -1533,10 +1533,10 @@ static int yt8531_config_init(struct phy_device *phydev)
static void yt8531_link_change_notify(struct phy_device *phydev) static void yt8531_link_change_notify(struct phy_device *phydev)
{ {
struct device_node *node = phydev->mdio.dev.of_node; 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_adj_enabled = false;
bool tx_clk_1000_inverted;
bool tx_clk_100_inverted;
bool tx_clk_10_inverted;
u16 val = 0; u16 val = 0;
int ret; int ret;
......
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