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 <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Marek Behún 2022-04-27 12:41:54 +02:00 committed by Stefan Roese
parent ca4730a466
commit 3b38fad182

View File

@ -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) {