Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f7c696a5 authored by Thorsten Blum's avatar Thorsten Blum Committed by Jens Axboe
Browse files

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: default avatarThorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240710010520.384009-2-thorsten.blum@toblux.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 93d8032f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment