The patch titled Subject: fs/reiserfs/do_balan.c: remove set but not used variable has been added to the -mm tree. Its filename is reiserfs-remove-set-but-not-used-variable-in-do_balanc.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/reiserfs-remove-set-but-not-used-variable-in-do_balanc.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/reiserfs-remove-set-but-not-used-variable-in-do_balanc.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jason Yan <yanaijie@xxxxxxxxxx> Subject: 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@xxxxxxxxxx Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx> Cc: zhengbin <zhengbin13@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/reiserfs/do_balan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/reiserfs/do_balan.c~reiserfs-remove-set-but-not-used-variable-in-do_balanc +++ a/fs/reiserfs/do_balan.c @@ -626,7 +626,6 @@ static void balance_leaf_insert_right(st struct buffer_head *tbS0 = PATH_PLAST_BUFFER(tb->tb_path); int n = B_NR_ITEMS(tbS0); struct buffer_info bi; - int ret; /* new item or part of it doesn't fall into R[0] */ if (n - tb->rnum[0] >= tb->item_pos) { @@ -690,7 +689,7 @@ static void balance_leaf_insert_right(st /* whole new item falls into R[0] */ /* Shift rnum[0]-1 items to R[0] */ - ret = leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes); + leaf_shift_right(tb, tb->rnum[0] - 1, tb->rbytes); /* Insert new item into R[0] */ buffer_info_init_right(tb, &bi); _ Patches currently in -mm which might be from yanaijie@xxxxxxxxxx are reiserfs-remove-set-but-not-used-variable-in-journalc.patch reiserfs-remove-set-but-not-used-variable-in-do_balanc.patch