Commit d4a1a857 authored by zhengbin's avatar zhengbin Committed by Linus Torvalds

fs/reiserfs/lbalance.c: remove set but not used variables

Fixes gcc '-Wunused-but-set-variable' warning:

fs/reiserfs/lbalance.c: In function leaf_paste_entries:
fs/reiserfs/lbalance.c:1325:9: warning: variable old_entry_num set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/1566379929-118398-4-git-send-email-zhengbin13@huawei.comSigned-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 66985cb9
...@@ -1322,7 +1322,7 @@ void leaf_paste_entries(struct buffer_info *bi, ...@@ -1322,7 +1322,7 @@ void leaf_paste_entries(struct buffer_info *bi,
char *item; char *item;
struct reiserfs_de_head *deh; struct reiserfs_de_head *deh;
char *insert_point; char *insert_point;
int i, old_entry_num; int i;
struct buffer_head *bh = bi->bi_bh; struct buffer_head *bh = bi->bi_bh;
if (new_entry_count == 0) if (new_entry_count == 0)
...@@ -1362,7 +1362,6 @@ void leaf_paste_entries(struct buffer_info *bi, ...@@ -1362,7 +1362,6 @@ void leaf_paste_entries(struct buffer_info *bi,
put_deh_location(&deh[i], put_deh_location(&deh[i],
deh_location(&deh[i]) + paste_size); deh_location(&deh[i]) + paste_size);
old_entry_num = ih_entry_count(ih);
put_ih_entry_count(ih, ih_entry_count(ih) + new_entry_count); put_ih_entry_count(ih, ih_entry_count(ih) + new_entry_count);
/* prepare space for pasted records */ /* prepare space for pasted records */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment