]> err.no Git - linux-2.6/commitdiff
block: fix shadowed variable warning in blk-map.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 4 Mar 2008 10:31:22 +0000 (11:31 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 4 Mar 2008 10:31:22 +0000 (11:31 +0100)
Introduced between 2.6.25-rc2 and -rc3
block/blk-map.c:154:14: warning: symbol 'bio' shadows an earlier one
block/blk-map.c:110:13: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-map.c

index 0760963546dd271db0ef0411bad1b7ffab923a6f..c07d9c8317f4c055d3821302c22df20cf2627195 100644 (file)
@@ -152,10 +152,10 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
         */
        if (len & q->dma_pad_mask) {
                unsigned int pad_len = (q->dma_pad_mask & ~len) + 1;
-               struct bio *bio = rq->biotail;
+               struct bio *tail = rq->biotail;
 
-               bio->bi_io_vec[bio->bi_vcnt - 1].bv_len += pad_len;
-               bio->bi_size += pad_len;
+               tail->bi_io_vec[tail->bi_vcnt - 1].bv_len += pad_len;
+               tail->bi_size += pad_len;
 
                rq->extra_len += pad_len;
        }