Skip to contentSkip to conversation

fs: fix warning Using plain integer as NULL pointer

PATCH New Jules Irenge 1 participant 1 message Sep 11, 2022 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: fix warning Using plain integer as NULL pointer

Changed "0 to NULL" to avoid Sparse warning

fs/direct-io.c:1137:36: warning: Using plain integer as NULL

---
 fs/direct-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/direct-io.c +1 -1
index f669163d5860..87910761039e 100644
@@ -1134,7 +1134,7 @@ ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
 	loff_t offset = iocb->ki_pos;
 	const loff_t end = offset + count;
 	struct dio *dio;
-	struct dio_submit sdio = { 0, };
+	struct dio_submit sdio = { NULL, };
 	struct buffer_head map_bh = { 0, };
 	struct blk_plug plug;
 	unsigned long align = offset | iov_iter_alignment(iter);
Signature · 1 line
2.35.1