]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
io_uring/rw: use NULL for rw->free_iovec assigment
authorJens Axboe <axboe@kernel.dk>
Tue, 17 Dec 2024 19:43:49 +0000 (12:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Dec 2024 17:09:14 +0000 (10:09 -0700)
It's a pointer, don't use 0 for that. sparse throws a warning for that,
as the kernel test robot noticed.

Fixes: d7f11616edf5 ("io_uring/rw: Allocate async data through helper")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412180253.YML3qN4d-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c

index d0ac4a51420ee2924caec5223bfa9c93644a05f8..75f70935ccf47de96dad11da3cefc371fe5a0bc2 100644 (file)
@@ -212,7 +212,7 @@ static void io_rw_async_data_init(void *obj)
 {
        struct io_async_rw *rw = (struct io_async_rw *)obj;
 
-       rw->free_iovec = 0;
+       rw->free_iovec = NULL;
        rw->bytes_done = 0;
 }