Skip to content

Commit 867632d

Browse files
YueHaibingtorvalds
authored andcommitted
ocfs2: remove set but not used variable 'rb'
Fixes gcc '-Wunused-but-set-variable' warning: fs/ocfs2/refcounttree.c: In function 'ocfs2_create_reflink_node': fs/ocfs2/refcounttree.c:4138:31: warning: variable 'rb' set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Joseph Qi <[email protected]> Cc: Changwei Ge <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9998657 commit 867632d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ocfs2/refcounttree.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4135,7 +4135,6 @@ static int ocfs2_create_reflink_node(struct inode *s_inode,
41354135
struct buffer_head *ref_root_bh = NULL;
41364136
struct ocfs2_cached_dealloc_ctxt dealloc;
41374137
struct ocfs2_super *osb = OCFS2_SB(s_inode->i_sb);
4138-
struct ocfs2_refcount_block *rb;
41394138
struct ocfs2_dinode *di = (struct ocfs2_dinode *)s_bh->b_data;
41404139
struct ocfs2_refcount_tree *ref_tree;
41414140

@@ -4162,7 +4161,6 @@ static int ocfs2_create_reflink_node(struct inode *s_inode,
41624161
mlog_errno(ret);
41634162
goto out;
41644163
}
4165-
rb = (struct ocfs2_refcount_block *)ref_root_bh->b_data;
41664164

41674165
ret = ocfs2_duplicate_extent_list(s_inode, t_inode, t_bh,
41684166
&ref_tree->rf_ci, ref_root_bh,

0 commit comments

Comments
 (0)