net: phy: micrel: Fixed error related to uninitialized symbol ret
Initialized return variable Fixes Old smatch warnings: drivers/net/phy/micrel.c:1750 ksz886x_cable_test_get_status() error: uninitialized symbol 'ret'. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Divya Koppera <Divya.Koppera@microchip.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f23395b404
commit
d50ede4f53
|
@ -2088,7 +2088,8 @@ static int ksz886x_cable_test_get_status(struct phy_device *phydev,
|
|||
const struct kszphy_type *type = phydev->drv->driver_data;
|
||||
unsigned long pair_mask = type->pair_mask;
|
||||
int retries = 20;
|
||||
int pair, ret;
|
||||
int ret = 0;
|
||||
int pair;
|
||||
|
||||
*finished = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue