[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250819070214.485381-1-zhao.xichao@vivo.com>
Date: Tue, 19 Aug 2025 15:02:14 +0800
From: Xichao Zhao <zhao.xichao@...o.com>
To: anna-maria@...utronix.de,
frederic@...nel.org,
tglx@...utronix.de
Cc: linux-kernel@...r.kernel.org,
Xichao Zhao <zhao.xichao@...o.com>
Subject: [PATCH] timers/migration: drop redundant conversion to bool
The result of integer comparison already evaluates to bool. No need for
explicit conversion.
No functional impact.
Signed-off-by: Xichao Zhao <zhao.xichao@...o.com>
---
kernel/time/timer_migration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/timer_migration.c b/kernel/time/timer_migration.c
index c0c54dc5314c..b869b244025f 100644
--- a/kernel/time/timer_migration.c
+++ b/kernel/time/timer_migration.c
@@ -751,7 +751,7 @@ bool tmigr_update_events(struct tmigr_group *group, struct tmigr_group *child,
* be scheduled. If the activate wins, the event is properly
* ignored.
*/
- ignore = (nextexp == KTIME_MAX) ? true : false;
+ ignore = (nextexp == KTIME_MAX);
WRITE_ONCE(evt->ignore, ignore);
} else {
nextexp = data->nextexp;
--
2.34.1
Powered by blists - more mailing lists