Commit 3f273d30 authored by Kent Overstreet's avatar Kent Overstreet Committed by Jens Axboe

block: Silence spurious compiler warnings

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4b1faf93
......@@ -89,6 +89,8 @@ static int blk_phys_contig_segment(struct request_queue *q, struct bio *bio,
struct bio_vec end_bv, nxt_bv;
struct bvec_iter iter;
uninitialized_var(end_bv);
if (!blk_queue_cluster(q))
return 0;
......@@ -173,6 +175,8 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
struct scatterlist *sg;
int nsegs, cluster;
uninitialized_var(bvprv);
nsegs = 0;
cluster = blk_queue_cluster(q);
......@@ -235,6 +239,8 @@ int blk_bio_map_sg(struct request_queue *q, struct bio *bio,
int nsegs, cluster;
struct bvec_iter iter;
uninitialized_var(bvprv);
nsegs = 0;
cluster = blk_queue_cluster(q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment