Skip to contentSkip to conversation

ocfs2: Remove pointless assignment from ocfs2_calc_refcount_meta_credits()

PATCH New Jan Kara 1 participant 1 message Jan 21, 2015 OCFS2

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

PATCH 1/1 ocfs2: Remove pointless assignment from ocfs2_calc_refcount_meta_credits()

The assigned value is never used.

Coverity-id: 1226847

CC Mark Fasheh <[email protected]>
CC Joel Becker <[email protected]>
---
 fs/ocfs2/refcounttree.c | 2 --
 1 file changed, 2 deletions(-)
fs/ocfs2/refcounttree.c +0 -2
index d81f6e2a97f5..ee541f92dab4 100644
@@ -2428,8 +2428,6 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
 			get_bh(prev_bh);
 		}
 
-		rb = (struct ocfs2_refcount_block *)ref_leaf_bh->b_data;
-
 		trace_ocfs2_calc_refcount_meta_credits_iterate(
 				recs_add, (unsigned long long)cpos, clusters,
 				(unsigned long long)le64_to_cpu(rec.r_cpos),
Signature · 1 line
2.1.2