From nobody Wed Dec 17 02:55:10 2025 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84DAB18F2CF for ; Sun, 23 Feb 2025 23:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740353821; cv=none; b=b9Jg6C6V0QxJnUf/bET/WL/S0KT7q1o8dQxJ84Htda/V7gTlotQjT+acMOVkPs/OZuHrpnhhHzdKNdDJiowAlERq9wZYsjdePWsEuxBD5QjcBUzDiJ481zBQt0NqA4qMRv9m+l516xv8EIpaitvohR5EERYB4cpvICEUrxjwdfA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740353821; c=relaxed/simple; bh=Yop4/s+Sou9hbYrxOiyrJs6aEMFpqGj2bcNw28tiP8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NgTYyrJqFzPkSRoMIpbtgLVKbqHZsHnDXKwy3QTTg4o93/byAh2v16RgFuzaeIuUUukHdnzVzk9nRq3OqEXymtH8dj1w//ExFHk/AMRzuoj+17NH5AWqP1VlT+3r+Q1Zp0W0JFprwSoggDzFneT882rvWJYtZe10XQ0NmJJBGQ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=DX5BZ2v+; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="DX5BZ2v+" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1740353817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=grsJR/twTl2brq13919098Zme6VKzC6hvEwh05sMYbY=; b=DX5BZ2v+mQUIlO/ehTV1XQALgHmqYmtHOpF6dwJ1+9U96jvcS9z5JsD4ftaQfWD+PNKgOS RajwQ2m6VmvKQ543blqvE+cSKW8YZW7Vs3kcr5hK/Kj5ctPU6eJDyvZBFaZmK8lMGcZsfG O7tDVlE5LuokcqU7y1KrrR0Qnd67C50= From: Thorsten Blum To: Yoshihiro Shimoda , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran Cc: Thorsten Blum , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: ethernet: renesas: rcar_gen4_ptp: Remove bool conversion Date: Mon, 24 Feb 2025 00:36:11 +0100 Message-ID: <20250223233613.100518-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove the unnecessary bool conversion and simplify the code. Signed-off-by: Thorsten Blum Reviewed-by: Geert Uytterhoeven Reviewed-by: Niklas S=C3=B6derlund --- drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c b/drivers/net/eth= ernet/renesas/rcar_gen4_ptp.c index 72e7fcc56693..4c3e8cc5046f 100644 --- a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c +++ b/drivers/net/ethernet/renesas/rcar_gen4_ptp.c @@ -29,8 +29,8 @@ static const struct rcar_gen4_ptp_reg_offset gen4_offs = =3D { static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_p= pm) { struct rcar_gen4_ptp_private *ptp_priv =3D ptp_to_priv(ptp); - bool neg_adj =3D scaled_ppm < 0 ? true : false; s64 addend =3D ptp_priv->default_addend; + bool neg_adj =3D scaled_ppm < 0; s64 diff; =20 if (neg_adj) --=20 2.48.1