projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e3f3e
)
block: remove unused variable in bio_attempt_front_merge()
author
Luca Tettamanti
<kronos.it@gmail.com>
Thu, 26 May 2011 19:07:26 +0000
(21:07 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Thu, 26 May 2011 19:07:26 +0000
(21:07 +0200)
sector is never read inside the function.
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-core.c
b/block/blk-core.c
index c8303e9d919da239ec5f04a43e11dbe1ceeef111..dd8ae71168c5d44722cc0ca38d153ca8fbdb2d75 100644
(file)
--- a/
block/blk-core.c
+++ b/
block/blk-core.c
@@
-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;