diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-03-19 01:36:30 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-19 03:15:20 +0100 |
commit | f0d3814090ac77de94c42b7124c37ece23629197 (patch) | |
tree | 374b3388bfc0589a9991558997de4786909c7384 /drivers | |
parent | bcache: Fix kernel-doc warnings (diff) | |
download | linux-f0d3814090ac77de94c42b7124c37ece23629197.tar.xz linux-f0d3814090ac77de94c42b7124c37ece23629197.zip |
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')
-rw-r--r-- | drivers/md/bcache/extents.c | 2 |
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: static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k) { struct btree *b = container_of(bk, struct btree, keys); - struct bucket *g; unsigned i, stale; if (!KEY_PTRS(k) || @@ -549,7 +548,6 @@ static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k) return false; for (i = 0; i < KEY_PTRS(k); i++) { - g = PTR_BUCKET(b->c, k, i); stale = ptr_stale(b->c, k, i); btree_bug_on(stale > 96, b, |