timers/migration: Remove redundant ternary operator
PATCH 1/1 timers/migration: Remove redundant ternary operator
The ternary operator is redundant here, so remove it.
Signed-off-by Fushuai Wang <[email protected]>
--- kernel/time/timer_migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timer_migration.c +1 -1
@@ -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;
Signature · 1 line
2.36.1
Quoted 12 lines · Fushuai Wang
The ternary operator is redundant here, so remove it.
Signed-off-by Fushuai Wang <[email protected]>--- kernel/time/timer_migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/time/timer_migration.c +0
-0
kernel/time/timer_migration.c bool tmigr_update_events(struct tmigr_group *group, struct tmigr_group *child, · line 754
Quoted 5 lines
kernel/time/timer_migration.c +1
-1@@ -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 );
The parentheses are pointless too, no?