From: Thomas Gleixner <tglx@linutronix.de>
To: Fushuai Wang <wangfushuai@baidu.com>,
anna-maria@linutronix.de, frederic@kernel.org
Cc: linux-kernel@vger.kernel.org, Fushuai Wang <wangfushuai@baidu.com>
Subject: Re: [PATCH] timers/migration: Remove redundant ternary operator
Date: Sat, 01 Nov 2025 20:55:00 +0100 [thread overview]
Message-ID: <878qgpy1d7.ffs@tglx> (raw)
In-Reply-To: <20251005073021.6810-1-wangfushuai@baidu.com>
On Sun, Oct 05 2025 at 15:30, Fushuai Wang wrote:
> 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);
The parentheses are pointless too, no?
prev parent reply other threads:[~2025-11-01 19:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-05 7:30 [PATCH] timers/migration: Remove redundant ternary operator Fushuai Wang
2025-11-01 19:55 ` Thomas Gleixner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878qgpy1d7.ffs@tglx \
--to=tglx@linutronix.de \
--cc=anna-maria@linutronix.de \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wangfushuai@baidu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.