Skip to content

Commit a660408

Browse files
committed
net: phy: as21xxx: fix uninitialized variable changed
error: uninitialized symbol 'changed'. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]>
1 parent 5812b58 commit a660408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/as21xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ static int aeon_c45_pma_setup_forced(struct phy_device *phydev)
11481148

11491149
static int aeon_c45_an_config_aneg(struct phy_device *phydev)
11501150
{
1151-
int changed, ret;
1151+
int changed = 0, ret;
11521152
u32 adv;
11531153
linkmode_and(phydev->advertising, phydev->advertising,
11541154
phydev->supported);

0 commit comments

Comments
 (0)