提交 700c4f33 编写于 作者: L Luca Tettamanti 提交者: Jens Axboe

block: remove unused variable in bio_attempt_front_merge()

sector is never read inside the function.
Signed-off-by: NLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
上级 75e3f3ee
......@@ -1130,7 +1130,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;
if (!ll_front_merge_fn(q, req, bio))
return false;
......@@ -1140,8 +1139,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册