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>
{
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");
}
pp->link = phydev->link;
- status_change = 1;
+ status_change = true;
}
if (status_change) {