Skip to contentSkip to conversation

bio_attempt_front_merge: remove unused variable.

PATCH Applied Luca Tettamanti 2 participants 2 messages May 25, 2011 – May 26, 2011 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bio_attempt_front_merge: remove unused variable.

sector is never read inside the function.

---
 block/blk-core.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
block/blk-core.c +0 -3
index 3fe00a1..1439bac 100644
@@ -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;
 
Signature · 1 line
1.7.5.1
maintainer Applied
#1 lore raw
Quoted 1 line · Luca Tettamanti

sector is never read inside the function.

Thanks, applied.

Signature · 1 line
Jens Axboe