summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorYang Xiuwei <yangxiuwei@kylinos.cn>2026-02-10 10:34:32 +0800
committerJens Axboe <axboe@kernel.dk>2026-02-09 20:12:46 -0700
commitdaa0b901f8319414cf9f56237f15240b95e4b1b2 (patch)
tree8cf5feeb9830b95e94448b2837c8842d77255668 /rust/alloc/collections/git@git.tavy.me:linux.git
parent7cb3a68376da0bc0afab8157223cb479c97de9ff (diff)
io_uring/tctx: avoid modifying loop variable in io_ring_add_registered_file
Use a separate 'idx' variable to store the result of array_index_nospec() instead of modifying the loop variable 'offset' directly. This improves code clarity by separating the logical index from the sanitized index used for array access. No functional change intended. Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions