mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
block: rbd: use NULL instead of 0
The local variables such as 'bio_list', and 'pages' are pointers; thus, use NULL instead of 0 to fix the following sparse warnings. drivers/block/rbd.c:2166:32: warning: Using plain integer as NULL pointer drivers/block/rbd.c:2168:31: warning: Using plain integer as NULL pointer Signed-off-by: Jingoo Han <jg1.han@samsung.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
6f60f88947
commit
a158073c43
@ -2163,9 +2163,9 @@ static int rbd_img_request_fill(struct rbd_img_request *img_request,
|
|||||||
struct rbd_obj_request *obj_request = NULL;
|
struct rbd_obj_request *obj_request = NULL;
|
||||||
struct rbd_obj_request *next_obj_request;
|
struct rbd_obj_request *next_obj_request;
|
||||||
bool write_request = img_request_write_test(img_request);
|
bool write_request = img_request_write_test(img_request);
|
||||||
struct bio *bio_list = 0;
|
struct bio *bio_list = NULL;
|
||||||
unsigned int bio_offset = 0;
|
unsigned int bio_offset = 0;
|
||||||
struct page **pages = 0;
|
struct page **pages = NULL;
|
||||||
u64 img_offset;
|
u64 img_offset;
|
||||||
u64 resid;
|
u64 resid;
|
||||||
u16 opcode;
|
u16 opcode;
|
||||||
|
Loading…
Reference in New Issue
Block a user