From: Marek BehĂșn Date: Wed, 27 Apr 2022 10:41:54 +0000 (+0200) Subject: net: mvneta: Use bool instead of int for boolean variable X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=3b38fad1827ecb6944da28c8d9b725b0d5917544;p=u-boot.git net: mvneta: Use bool instead of int for boolean variable Use the bool type instead of int for status_change variable. Signed-off-by: Marek BehĂșn Reviewed-by: Ramon Fried Reviewed-by: Stefan Roese --- 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) {