[PATCH u-boot-marvell 11/19] net: mvneta: Use bool instead of int for boolean variable
Marek Behún
kabel at kernel.org
Wed Apr 27 12:41:54 CEST 2022
From: Marek Behún <marek.behun at nic.cz>
Use the bool type instead of int for status_change variable.
Signed-off-by: Marek Behún <marek.behun at nic.cz>
---
drivers/net/mvneta.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c
index 66d5e10174..7d582c1206 100644
--- a/drivers/net/mvneta.c
+++ b/drivers/net/mvneta.c
@@ -1154,7 +1154,7 @@ static void mvneta_adjust_link(struct udevice *dev)
{
struct mvneta_port *pp = dev_get_priv(dev);
struct phy_device *phydev = pp->phydev;
- int status_change = 0;
+ bool status_change = false;
if (pp->fixed_link) {
debug("Using fixed link, skip link adjust\n");
@@ -1193,7 +1193,7 @@ static void mvneta_adjust_link(struct udevice *dev)
}
pp->link = phydev->link;
- status_change = 1;
+ status_change = true;
}
if (status_change) {
--
2.35.1
More information about the U-Boot
mailing list