]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: mvneta: Use bool instead of int for boolean variable
authorMarek Behún <marek.behun@nic.cz>
Wed, 27 Apr 2022 10:41:54 +0000 (12:41 +0200)
committerStefan Roese <sr@denx.de>
Wed, 4 May 2022 05:05:51 +0000 (07:05 +0200)
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>
drivers/net/mvneta.c

index 66d5e101742a859dafa51676760d30675dfd78d5..7d582c12062de1ff0bf21b57701562565b682337 100644 (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) {