Skip to content

Commit

Permalink
block: remove unused variable in bio_attempt_front_merge()
Browse files Browse the repository at this point in the history
sector is never read inside the function.

Signed-off-by: Luca Tettamanti <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
tettamanti authored and Jens Axboe committed May 26, 2011
1 parent 75e3f3e commit 700c4f3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit 700c4f3

Please sign in to comment.