mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
net: ethernet: renesas: rcar_gen4_ptp: Remove bool conversion
Remove the unnecessary bool conversion and simplify the code. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://patch.msgid.link/20250223233613.100518-2-thorsten.blum@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
7183877d68
commit
6538c8ca8e
@@ -29,8 +29,8 @@ static const struct rcar_gen4_ptp_reg_offset gen4_offs = {
|
||||
static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
|
||||
{
|
||||
struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp);
|
||||
bool neg_adj = scaled_ppm < 0 ? true : false;
|
||||
s64 addend = ptp_priv->default_addend;
|
||||
bool neg_adj = scaled_ppm < 0;
|
||||
s64 diff;
|
||||
|
||||
if (neg_adj)
|
||||
|
||||
Reference in New Issue
Block a user