* [PATCH] nvme: fixup compiler warning
@ 2014-11-04 7:12 Hannes Reinecke
0 siblings, 0 replies; only message in thread
From: Hannes Reinecke @ 2014-11-04 7:12 UTC (permalink / raw)
To: linux-nvme; +Cc: linux-kernel, Hannes Reinecke, Matthew Wilcox
gcc complains about a variable not initialized properly.
Cc: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
drivers/block/nvme-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index e2bb8af..ff37b9f 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -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;
--
1.8.5.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-04 7:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-04 7:12 [PATCH] nvme: fixup compiler warning Hannes Reinecke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome