nvme: fixup compiler warning
Subsystems (2)
PATCH 1/1 nvme: fixup compiler warning
gcc complains about a variable not initialized properly.
Cc Matthew Wilcox <willy at linux.intel.com>
Signed-off-by Hannes Reinecke <hare at suse.de>
--- drivers/block/nvme-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/nvme-core.c +1 -1
@@ -571,7 +571,7 @@ static int nvme_split_and_submit(struct bio *bio, struct nvme_queue *nvmeq,static int nvme_map_bio (struct nvme_queue *nvmeq,struct nvme_iod *iod,struct bio *bio,enum dma_data_direction dma_dir,int psegs) { -struct bio_vec bvec, bvprv; +struct bio_vec bvec, bvprv = {.bv_offset =0 , .bv_len =0 };struct bvec_iter iter;struct scatterlist *sg =NULL ;int length =0 , nsegs =0 , split_len = bio->bi_iter.bi_size;
Signature · 1 line
1.8.5.2