]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring: fix bad indentation for setup flags if statement
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jan 2026 12:09:08 +0000 (05:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jan 2026 12:09:08 +0000 (05:09 -0700)
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: 5247c034a67f ("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>
io_uring/io_uring.c

index 0f88ec74e55d13f56e6d7b53acbe56a629d42304..5c503a3f6ecca4c2ac2856d157d2b8b794625a80 100644 (file)
@@ -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 */