]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/napi: Remove unnecessary s64 cast
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 10 Jul 2024 01:05:21 +0000 (03:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jul 2024 06:20:52 +0000 (00:20 -0600)
commitf7c696a56cc7d70515774a24057b473757ec6089
treeed806587ba7d60223920ca12909ab27d73902297
parent93d8032f4143c8d2ac3e10c6504385c26acc511f
io_uring/napi: Remove unnecessary s64 cast

Since the do_div() macro casts the divisor to u32 anyway, remove the
unnecessary s64 cast and fix the following Coccinelle/coccicheck
warning reported by do_div.cocci:

  WARNING: do_div() does a 64-by-32 division, please consider using div64_s64 instead

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240710010520.384009-2-thorsten.blum@toblux.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/napi.c