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

From: Daeseok Youn
Date: Thu Feb 13 2014 - 02:44:58 EST


following sparse warning:

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

Signed-off-by: Daeseok Youn <daeseok.youn@xxxxxxxxx>
---
include/linux/blkdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 8678c43..26b8466 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -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)
{
--
1.7.9.5
---

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/