Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.com
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reported-by: Hulk Robot <hulkci@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>

authored by

zhengbin and committed by
Linus Torvalds
4fadcd1c 73fbff5e

+1 -5
+1 -5
fs/reiserfs/fix_node.c
··· 376 376 int to, int to_bytes, short *snum012, int flow) 377 377 { 378 378 int i; 379 - int cur_free; 380 379 int units; 381 380 struct virtual_node *vn = tb->tb_vn; 382 381 int total_node_size, max_node_size, current_item_size; ··· 437 438 /* leaf level */ 438 439 needed_nodes = 1; 439 440 total_node_size = 0; 440 - cur_free = max_node_size; 441 441 442 442 /* start from 'from'-th item */ 443 443 start_item = from; ··· 1732 1734 * and Fh is its father. 1733 1735 */ 1734 1736 struct buffer_head *Sh, *Fh; 1735 - int maxsize, ret; 1737 + int ret; 1736 1738 int lfree, rfree /* free space in L and R */ ; 1737 1739 1738 1740 Sh = PATH_H_PBUFFER(tb->tb_path, h); 1739 1741 Fh = PATH_H_PPARENT(tb->tb_path, h); 1740 - 1741 - maxsize = MAX_CHILD_SIZE(Sh); 1742 1742 1743 1743 /* 1744 1744 * using tb->insert_size[h], which is negative in this case,