diff options
author | Cosmin-Florin Aluchenesei | 2021-07-21 19:13:11 +0300 |
---|---|---|
committer | Ramon Fried | 2021-07-22 22:15:33 +0300 |
commit | b9b7b5e49c2635eeb0b53c54fd2db51626de467d (patch) | |
tree | 3c51d9c21fced3fa786ad1cb079ec0da608f3ae2 /drivers | |
parent | 79d191efa10b1b3822084eb2008b7917b3c4700f (diff) |
drivers: net: aquantia: fix unsigned compared against 0
Change the reg variable to not be unsigned so that we not get into an
unsigned compared against 0.
Signed-off-by: Cosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/aquantia.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 9061afa6203..d3d35a75d06 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -3,7 +3,7 @@ * Aquantia PHY drivers * * Copyright 2014 Freescale Semiconductor, Inc. - * Copyright 2018 NXP + * Copyright 2018, 2021 NXP */ #include <config.h> #include <common.h> @@ -554,8 +554,9 @@ int aquantia_config(struct phy_device *phydev) int aquantia_startup(struct phy_device *phydev) { - u32 reg, speed; + u32 speed; int i = 0; + int reg; phydev->duplex = DUPLEX_FULL; |