[<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