public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] timers/migration: Remove redundant ternary operator
@ 2025-10-05  7:30 Fushuai Wang
  2025-11-01 19:55 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Fushuai Wang @ 2025-10-05  7:30 UTC (permalink / raw)
  To: anna-maria, frederic, tglx; +Cc: linux-kernel, Fushuai Wang

The ternary operator is redundant here, so remove it.

Signed-off-by: Fushuai Wang <wangfushuai@baidu.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.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-01 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05  7:30 [PATCH] timers/migration: Remove redundant ternary operator Fushuai Wang
2025-11-01 19:55 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox