mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
rxrpc: Use umin() and umax() rather than min_t()/max_t() where possible
Use umin() and umax() rather than min_t()/max_t() where the type specified is an unsigned type. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org Link: https://patch.msgid.link/20241204074710.990092-4-dhowells@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
0e56ebde24
commit
29e03ec757
@@ -503,7 +503,7 @@ static int rxperf_process_call(struct rxperf_call *call)
|
||||
reply_len + sizeof(rxperf_magic_cookie));
|
||||
|
||||
while (reply_len > 0) {
|
||||
len = min_t(size_t, reply_len, PAGE_SIZE);
|
||||
len = umin(reply_len, PAGE_SIZE);
|
||||
bvec_set_page(&bv, ZERO_PAGE(0), len, 0);
|
||||
iov_iter_bvec(&msg.msg_iter, WRITE, &bv, 1, len);
|
||||
msg.msg_flags = MSG_MORE;
|
||||
|
||||
Reference in New Issue
Block a user