mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] blkdev: use NULL instead of zero
@ 2014-09-15 15:06 Michele Curti
  0 siblings, 0 replies; only message in thread
From: Michele Curti @ 2014-09-15 15:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, viro


blkdev: use NULL instead of zero

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

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-15 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-15 15:06 [PATCH] blkdev: use NULL instead of zero Michele Curti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®