Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Jakub Kicinski
6538c8ca 7183877d

+1 -1
+1 -1
drivers/net/ethernet/renesas/rcar_gen4_ptp.c
··· 29 29 static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) 30 30 { 31 31 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); 32 - bool neg_adj = scaled_ppm < 0 ? true : false; 33 32 s64 addend = ptp_priv->default_addend; 33 + bool neg_adj = scaled_ppm < 0; 34 34 s64 diff; 35 35 36 36 if (neg_adj)