[PATCH net-next 7/8] net/rxrpc: Use min() to simplify the code

David Howells dhowells at redhat.com
Sat Aug 24 05:06:55 PDT 2024


Hongbo Li <lihongbo22 at huawei.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




More information about the linux-afs mailing list