lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <878qgpy1d7.ffs@tglx>
Date: Sat, 01 Nov 2025 20:55:00 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Fushuai Wang <wangfushuai@...du.com>, anna-maria@...utronix.de,
 frederic@...nel.org
Cc: linux-kernel@...r.kernel.org, Fushuai Wang <wangfushuai@...du.com>
Subject: Re: [PATCH] timers/migration: Remove redundant ternary operator

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@...du.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?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ