Commit 4fadcd1c authored by zhengbin's avatar zhengbin Committed by Linus Torvalds

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

fs/reiserfs/fix_node.c: In function get_num_ver:
fs/reiserfs/fix_node.c:379:6: warning: variable cur_free set but not used [-Wunused-but-set-variable]
fs/reiserfs/fix_node.c: In function dc_check_balance_internal:
fs/reiserfs/fix_node.c:1737:6: warning: variable maxsize set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/1566379929-118398-7-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 73fbff5e
...@@ -376,7 +376,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h, ...@@ -376,7 +376,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h,
int to, int to_bytes, short *snum012, int flow) int to, int to_bytes, short *snum012, int flow)
{ {
int i; int i;
int cur_free;
int units; int units;
struct virtual_node *vn = tb->tb_vn; struct virtual_node *vn = tb->tb_vn;
int total_node_size, max_node_size, current_item_size; int total_node_size, max_node_size, current_item_size;
...@@ -438,7 +437,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h, ...@@ -438,7 +437,6 @@ static int get_num_ver(int mode, struct tree_balance *tb, int h,
/* leaf level */ /* leaf level */
needed_nodes = 1; needed_nodes = 1;
total_node_size = 0; total_node_size = 0;
cur_free = max_node_size;
/* start from 'from'-th item */ /* start from 'from'-th item */
start_item = from; start_item = from;
...@@ -1734,14 +1732,12 @@ static int dc_check_balance_internal(struct tree_balance *tb, int h) ...@@ -1734,14 +1732,12 @@ static int dc_check_balance_internal(struct tree_balance *tb, int h)
* and Fh is its father. * and Fh is its father.
*/ */
struct buffer_head *Sh, *Fh; struct buffer_head *Sh, *Fh;
int maxsize, ret; int ret;
int lfree, rfree /* free space in L and R */ ; int lfree, rfree /* free space in L and R */ ;
Sh = PATH_H_PBUFFER(tb->tb_path, h); Sh = PATH_H_PBUFFER(tb->tb_path, h);
Fh = PATH_H_PPARENT(tb->tb_path, h); Fh = PATH_H_PPARENT(tb->tb_path, h);
maxsize = MAX_CHILD_SIZE(Sh);
/* /*
* using tb->insert_size[h], which is negative in this case, * using tb->insert_size[h], which is negative in this case,
* create_virtual_node calculates: * create_virtual_node calculates:
......
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