* [PATCH] block: use NULL instead of 0 for pointer in blkdev.h
@ 2014-02-13 9:51 Daeseok Youn
0 siblings, 0 replies; only message in thread
From: Daeseok Youn @ 2014-02-13 9:51 UTC (permalink / raw)
To: akpm, axboe
Cc: hch, kmo, snitzer, JBottomley, ming.m.lin, j-nomura, linux-kernel
>From dc82a41842df1e20e8508cea6922882f8b122a50 Mon Sep 17 00:00:00 2001
From: Daeseok Youn <daeseok.youn@gmail.com>
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
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
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
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-13 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 9:51 [PATCH] block: use NULL instead of 0 for pointer in blkdev.h Daeseok Youn
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®