浏览代码

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>
Bart Van Assche 7 年之前
父节点
当前提交
f0d3814090
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/md/bcache/extents.c

+ 0 - 2
drivers/md/bcache/extents.c

@@ -534,7 +534,6 @@ err:
 static bool bch_extent_bad(struct btree_keys *bk, 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 btree *b = container_of(bk, struct btree, keys);
-	struct bucket *g;
 	unsigned i, stale;
 	unsigned i, stale;
 
 
 	if (!KEY_PTRS(k) ||
 	if (!KEY_PTRS(k) ||
@@ -549,7 +548,6 @@ static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k)
 		return false;
 		return false;
 
 
 	for (i = 0; i < KEY_PTRS(k); i++) {
 	for (i = 0; i < KEY_PTRS(k); i++) {
-		g = PTR_BUCKET(b->c, k, i);
 		stale = ptr_stale(b->c, k, i);
 		stale = ptr_stale(b->c, k, i);
 
 
 		btree_bug_on(stale > 96, b,
 		btree_bug_on(stale > 96, b,