Skip to contentSkip to conversation

blkdev: use NULL instead of zero

PATCH New Michele Curti 1 participant 1 message Sep 15, 2014 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blkdev: use NULL instead of zero

blkdev: use NULL instead of zero

include/linux/blkdev.h +1 -1
index 3a7449d..66c8298 100644
@@ -1533,7 +1533,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 · 6 lines
2.1.0

Quite useless but it shuts up some warnings.

Regards,
Michele