From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21208C433F5 for ; Wed, 27 Apr 2022 10:46:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51D7083EE0; Wed, 27 Apr 2022 12:45:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="LhMNEcEs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2851983EA0; Wed, 27 Apr 2022 12:43:44 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 39F5383EA6 for ; Wed, 27 Apr 2022 12:42:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE0BFB82576; Wed, 27 Apr 2022 10:42:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC646C385AE; Wed, 27 Apr 2022 10:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651056153; bh=irRUX7KhdkYtcd6ZuJSDFTuHXloOsioe/0f9VjOutKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LhMNEcEsXhDPFdllVFTiAJHTYT94C0BN2OwtnFz/cVVE6fyp79JgT+QasbuOgy/UQ xat9/A2olDBD5qK1lyGAfBTKxos+qm3FBFcRrjrTHnCYbv/yItfAxlC3GnDjh9hTRh I0Qmu2QvaEHVAnnbxefImK8XrUiWY0fj4pmKruzIJ2l+If5ZWzRU2WOy/H/DQa0Va7 eRMA3lXP0joZO+mK8r1tiLlQrn6x1IvHdsT6F3b0C+4bKnzueSCOZp1hN6KdBWU7pj ITssm7xzj7o6yS+ZLzBmALvDRiEvgXhAUrrdzvGnWHQ0rO801vGAo9QXjsVREV3b0F /duCEPmO+7eng== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Stefan Roese Cc: Robert Marko , =?UTF-8?q?Pali=20Roh=C3=A1r?= , U-Boot-Denx , Ramon Fried , Joe Hershberger , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell 11/19] net: mvneta: Use bool instead of int for boolean variable Date: Wed, 27 Apr 2022 12:41:54 +0200 Message-Id: <20220427104202.1205-12-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220427104202.1205-1-kabel@kernel.org> References: <20220427104202.1205-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Marek BehĂșn Use the bool type instead of int for status_change variable. Signed-off-by: Marek BehĂșn --- 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