mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
io_uring: fix bad indentation for setup flags if statement
smatch complains about this:
smatch warnings:
io_uring/io_uring.c:2741 io_uring_sanitise_params() warn: if statement not indented
hence fix it up.
Link: https://lore.kernel.org/all/202601231651.HeTmPS8C-lkp@intel.com/
Fixes: 5247c034a6 ("io_uring: introduce non-circular SQ")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202601231651.HeTmPS8C-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -2740,7 +2740,7 @@ static int io_uring_sanitise_params(struct io_uring_params *p)
|
||||
if (flags & IORING_SETUP_SQ_REWIND) {
|
||||
if ((flags & IORING_SETUP_SQPOLL) ||
|
||||
!(flags & IORING_SETUP_NO_SQARRAY))
|
||||
return -EINVAL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* There is no way to mmap rings without a real fd */
|
||||
|
||||
Reference in New Issue
Block a user