ntp: Convert functions with only two states to bool
authorThomas Gleixner <tglx@linutronix.de>
Wed, 11 Sep 2024 13:17:41 +0000 (15:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Oct 2024 14:53:39 +0000 (16:53 +0200)
commit48c3c65f64b01164f1704b40b38f60837d484f13
treec0154a6f5057d6e0e53052fb039d806f3fa46189
parent38007dc032bd90920463c5d2e6a27d89f7617d6d
ntp: Convert functions with only two states to bool

is_error_status() and ntp_synced() return whether a state is set or
not. Both functions use unsigned int for it even if it would be a perfect
job for a bool.

Use bool instead of unsigned int. And while at it, move ntp_synced()
function to the place where it is used.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20240911-devel-anna-maria-b4-timers-ptp-ntp-v1-5-2d52f4e13476@linutronix.de
kernel/time/ntp.c