Skip to content

Commit d18c2a1

Browse files
Dan Carpenterdavem330
authored andcommitted
phylink: Fix an uninitialized variable bug
"ret" isn't necessarily initialized here. Fixes: 9525ae8 ("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>
1 parent 35c7ad3 commit d18c2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/phylink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
958958
}
959959
mutex_unlock(&pl->state_mutex);
960960

961-
return ret;
961+
return 0;
962962
}
963963
EXPORT_SYMBOL_GPL(phylink_ethtool_ksettings_set);
964964

0 commit comments

Comments
 (0)