Skip to content

Commit 21adbca

Browse files
committed
io_uring/rw: use NULL for rw->free_iovec assigment
It's a pointer, don't use 0 for that. sparse throws a warning for that, as the kernel test robot noticed. Fixes: d7f1161 ("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>
1 parent 1143be1 commit 21adbca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/rw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void io_rw_async_data_init(void *obj)
212212
{
213213
struct io_async_rw *rw = (struct io_async_rw *)obj;
214214

215-
rw->free_iovec = 0;
215+
rw->free_iovec = NULL;
216216
rw->bytes_done = 0;
217217
}
218218

0 commit comments

Comments
 (0)