Skip to contentSkip to conversation

bcache: Remove unused pointer in bch_extent_bad()

PATCH New Christian Engelmayer 1 participant 1 message Feb 3, 2014 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcache: Remove unused pointer in bch_extent_bad()

Remove unused pointer 'g' in function bch_extent_bad().

Detected by Coverity: CID 1166029.

---
 drivers/md/bcache/extents.c | 2 --
 1 file changed, 2 deletions(-)
drivers/md/bcache/extents.c +0 -2
index c3ead58..9825eb8 100644
@@ -524,7 +524,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) ||
@@ -539,7 +538,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,
Signature · 1 line
1.8.3.2