net: phy: Uninitialized variables in yt8531_link_change_notify()
Subsystems (5)
PATCH 1/1 net: phy: Uninitialized variables in yt8531_link_change_notify()
These booleans are never set to false, but are just used uninitialized.
Fixes 4ac94f728a58 ("net: phy: Add driver for Motorcomm yt8531 gigabit ethernet phy")
Signed-off-by Dan Carpenter <[email protected]>
---
Applies to net-next.
drivers/net/phy/motorcomm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/phy/motorcomm.c +3 -3
@@ -1534,9 +1534,9 @@ static void yt8531_link_change_notify(struct phy_device *phydev) {struct device_node *node = phydev->mdio.dev.of_node;bool tx_clk_adj_enabled = false; -bool tx_clk_1000_inverted; -bool tx_clk_100_inverted; -bool tx_clk_10_inverted; +bool tx_clk_1000_inverted = false; +bool tx_clk_100_inverted = false; +bool tx_clk_10_inverted = false;u16 val =0 ;int ret;
Signature · 1 line
2.35.1