[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110525204506.GA24207@nb-core2.darkstar.lan>
Date: Wed, 25 May 2011 22:45:06 +0200
From: Luca Tettamanti <kronos.it@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH] bio_attempt_front_merge: remove unused variable.
sector is never read inside the function.
Signed-off-by: Luca Tettamanti <kronos.it@...il.com>
---
block/blk-core.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/block/blk-core.c b/block/blk-core.c
index 3fe00a1..1439bac 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1139,7 +1139,6 @@ static bool bio_attempt_front_merge(struct request_queue *q,
struct request *req, struct bio *bio)
{
const int ff = bio->bi_rw & REQ_FAILFAST_MASK;
- sector_t sector;
/*
* Debug stuff, kill later
@@ -1157,8 +1156,6 @@ static bool bio_attempt_front_merge(struct request_queue *q,
if ((req->cmd_flags & REQ_FAILFAST_MASK) != ff)
blk_rq_set_mixed_merge(req);
- sector = bio->bi_sector;
-
bio->bi_next = req->bio;
req->bio = bio;
--
1.7.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists