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] [thread-next>] [day] [month] [year] [list]
Message-ID: <563923.1724501215@warthog.procyon.org.uk>
Date: Sat, 24 Aug 2024 13:06:55 +0100
From: David Howells <dhowells@...hat.com>
To: Hongbo Li <lihongbo22@...wei.com>
Cc: dhowells@...hat.com, johannes@...solutions.net, davem@...emloft.net,
    edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
    allison.henderson@...cle.com, dsahern@...nel.org, pshelar@....org,
    linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
    rds-devel@....oracle.com, dccp@...r.kernel.org, dev@...nvswitch.org,
    linux-afs@...ts.infradead.org
Subject: Re: [PATCH net-next 7/8] net/rxrpc: Use min() to simplify the code

Hongbo Li <lihongbo22@...wei.com> wrote:

> -	summary.ack_reason = (sp->ack.reason < RXRPC_ACK__INVALID ?
> -			      sp->ack.reason : RXRPC_ACK__INVALID);
> +	summary.ack_reason = min(sp->ack.reason, RXRPC_ACK__INVALID);

Can you use umin() rather than min(), please?

Thanks,
David


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ