public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bio_attempt_front_merge: remove unused variable.
@ 2011-05-25 20:45 Luca Tettamanti
  2011-05-26 19:08 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Tettamanti @ 2011-05-25 20:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens Axboe

sector is never read inside the function.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bio_attempt_front_merge: remove unused variable.
  2011-05-25 20:45 [PATCH] bio_attempt_front_merge: remove unused variable Luca Tettamanti
@ 2011-05-26 19:08 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2011-05-26 19:08 UTC (permalink / raw)
  To: Luca Tettamanti; +Cc: linux-kernel

On 2011-05-25 22:45, Luca Tettamanti wrote:
> sector is never read inside the function.

Thanks, applied.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-26 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 20:45 [PATCH] bio_attempt_front_merge: remove unused variable Luca Tettamanti
2011-05-26 19:08 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox