[PATCH] blkdev: use NULL instead of zero

From: Michele Curti
Date: Mon Sep 15 2014 - 11:06:28 EST



blkdev: use NULL instead of zero

Signed-off-by: Michele Curti <michele.curti@xxxxxxxxx>

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 3a7449d..66c8298 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -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)
{
--
2.1.0

Quite useless but it shuts up some warnings.

Regards,
Michele

--
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/