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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Jens Axboe <[email protected]>
1 parent 1143be1 commit 21adbca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)