aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-03-18 20:36:30 -0400
committerJens Axboe <axboe@kernel.dk>2018-03-18 22:15:20 -0400
commitf0d3814090ac77de94c42b7124c37ece23629197 (patch)
tree374b3388bfc0589a9991558997de4786909c7384 /drivers/md
parent47344e330eabc1515cbe6061eb337100a3ab6d37 (diff)
bcache: Remove an unused variable
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Michael Lyle <mlyle@lyle.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/extents.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/extents.c b/drivers/md/bcache/extents.c
index f9d391711595..c334e6666461 100644
--- a/drivers/md/bcache/extents.c
+++ b/drivers/md/bcache/extents.c
@@ -534,7 +534,6 @@ err:
534static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k) 534static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k)
535{ 535{
536 struct btree *b = container_of(bk, struct btree, keys); 536 struct btree *b = container_of(bk, struct btree, keys);
537 struct bucket *g;
538 unsigned i, stale; 537 unsigned i, stale;
539 538
540 if (!KEY_PTRS(k) || 539 if (!KEY_PTRS(k) ||
@@ -549,7 +548,6 @@ static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k)
549 return false; 548 return false;
550 549
551 for (i = 0; i < KEY_PTRS(k); i++) { 550 for (i = 0; i < KEY_PTRS(k); i++) {
552 g = PTR_BUCKET(b->c, k, i);
553 stale = ptr_stale(b->c, k, i); 551 stale = ptr_stale(b->c, k, i);
554 552
555 btree_bug_on(stale > 96, b, 553 btree_bug_on(stale > 96, b,