diff options
author | Divya Koppera <Divya.Koppera@microchip.com> | 2023-01-06 11:29:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-09 10:21:42 +0300 |
commit | d50ede4f53e19b63f785768ce62f9a5019c3a021 (patch) | |
tree | ebd3dded19dbe91c46ea621cbe1714ceb4b695f3 /drivers/net/phy/micrel.c | |
parent | f23395b4049c826bc1a294eea69459cb774598b4 (diff) | |
download | linux-d50ede4f53e19b63f785768ce62f9a5019c3a021.tar.xz |
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>
Diffstat (limited to 'drivers/net/phy/micrel.c')
-rw-r--r-- | drivers/net/phy/micrel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 2243ad1b88e7..6c41550310e7 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -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; |