[PATCH u-boot-marvell 11/19] net: mvneta: Use bool instead of int for boolean variable

Ramon Fried rfried.dev at gmail.com
Sun May 1 01:29:59 CEST 2022


On Wed, Apr 27, 2022 at 1:42 PM Marek Behún <kabel at kernel.org> wrote:
>
> 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
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>


More information about the U-Boot mailing list