Skip to contentSkip to conversation

io_uring/rw: use NULL for rw->free_iovec assigment

PATCH In review Jens Axboe 2 participants 2 messages Dec 17, 2024 – Dec 18, 2024 io_uring

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 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 8cf0c459993e ("io_uring/rw: Allocate async data through helper")

---

io_uring/rw.c +1 -1
index d0ac4a51420e..75f70935ccf4 100644
@@ -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;
 }
 
Signature · 1 line
Jens Axboe