]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bcache: Remove an unused variable
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 19 Mar 2018 00:36:30 +0000 (17:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2018 02:15:20 +0000 (20:15 -0600)
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>
drivers/md/bcache/extents.c

index f9d391711595fb87c479251fbf382459174d7e76..c334e6666461750e6e2dfe09ec7e9139c22b0da0 100644 (file)
@@ -534,7 +534,6 @@ static bool bch_extent_bad_expensive(struct btree *b, const struct bkey *k,
 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,