Skip to contentSkip to conversation

block: use NULL instead of 0 for pointer in blkdev.h

PATCH New Daeseok Youn 1 participant 1 message Feb 13, 2014 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: use NULL instead of 0 for pointer in blkdev.h

Quoted 1 line

From dc82a41842df1e20e8508cea6922882f8b122a50 Mon Sep 17 00:00:00 2001

From: Daeseok Youn <[email protected]>
Date: Thu, 13 Feb 2014 16:44:58 +0900
Subject: [PATCH] block: use NULL instead of 0 for pointer in blkdev.h

following sparse warning:

include/linux/blkdev.h:1518:16: warning:
Using plain integer as NULL pointer

---
 include/linux/blkdev.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/blkdev.h +1 -1
index 8678c43..26b8466 100644
@@ -1515,7 +1515,7 @@ static inline int blk_rq_map_integrity_sg(struct request_queue *q,
 }
 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b)
 {
-	return 0;
+	return NULL;
 }
 static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk)
 {
Signature · 2 lines
1.7.9.5
---