Skip to content

Commit b25bab1

Browse files
JasonYanHwtorvalds
authored andcommitted
fs/reiserfs/do_balan.c: remove set but not used variable
Fix the following gcc warning: fs/reiserfs/do_balan.c: In function balance_leaf_insert_right: fs/reiserfs/do_balan.c:629:6: warning: variable ret set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/20190827032932.46622-2-yanaijie@huawei.com Signed-off-by: Jason Yan <yanaijie@huawei.com> Cc: zhengbin <zhengbin13@huawei.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3e9fd5a commit b25bab1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/reiserfs/do_balan.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ static void balance_leaf_insert_right(struct tree_balance *tb,
626626
struct buffer_head *tbS0 = PATH_PLAST_BUFFER(tb->tb_path);
627627
int n = B_NR_ITEMS(tbS0);
628628
struct buffer_info bi;
629-
int ret;
630629

631630
/* new item or part of it doesn't fall into R[0] */
632631
if (n - tb->rnum[0] >= tb->item_pos) {
@@ -690,7 +689,7 @@ static void balance_leaf_insert_right(struct tree_balance *tb,
690689
/* whole new item falls into R[0] */
691690

692691
/* Shift rnum[0]-1 items to R[0] */
693-
ret = leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes);
692+
leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes);
694693

695694
/* Insert new item into R[0] */
696695
buffer_info_init_right(tb, &bi);

0 commit comments

Comments
 (0)