reiserfs: fix more sparse warnings in do_balan.c

fs/reiserfs/do_balan.c:1467:10: warning: symbol 'ret_val' shadows an earlier one
fs/reiserfs/do_balan.c:275:6: originally declared here
fs/reiserfs/do_balan.c:1471:23: warning: symbol 'ih' shadows an earlier one
fs/reiserfs/do_balan.c:249:67: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Harvey Harrison 2008-04-28 02:16:21 -07:00 committed by Linus Torvalds
parent e13601bc6a
commit 8acc570fab
1 changed files with 7 additions and 7 deletions

View File

@ -1464,29 +1464,29 @@ static int balance_leaf(struct tree_balance *tb, struct item_head *ih, /* item h
} else } else
/* item falls wholly into S_new[i] */ /* item falls wholly into S_new[i] */
{ {
int ret_val; int leaf_mi;
struct item_head *pasted; struct item_head *pasted;
#ifdef CONFIG_REISERFS_CHECK #ifdef CONFIG_REISERFS_CHECK
struct item_head *ih = struct item_head *ih_check =
B_N_PITEM_HEAD(tbS0, item_pos); B_N_PITEM_HEAD(tbS0, item_pos);
if (!is_direntry_le_ih(ih) if (!is_direntry_le_ih(ih_check)
&& (pos_in_item != ih_item_len(ih) && (pos_in_item != ih_item_len(ih_check)
|| tb->insert_size[0] <= 0)) || tb->insert_size[0] <= 0))
reiserfs_panic(tb->tb_sb, reiserfs_panic(tb->tb_sb,
"PAP-12235: balance_leaf: pos_in_item must be equal to ih_item_len"); "PAP-12235: balance_leaf: pos_in_item must be equal to ih_item_len");
#endif /* CONFIG_REISERFS_CHECK */ #endif /* CONFIG_REISERFS_CHECK */
ret_val = leaf_mi =
leaf_move_items(LEAF_FROM_S_TO_SNEW, leaf_move_items(LEAF_FROM_S_TO_SNEW,
tb, snum[i], tb, snum[i],
sbytes[i], sbytes[i],
S_new[i]); S_new[i]);
RFALSE(ret_val, RFALSE(leaf_mi,
"PAP-12240: unexpected value returned by leaf_move_items (%d)", "PAP-12240: unexpected value returned by leaf_move_items (%d)",
ret_val); leaf_mi);
/* paste into item */ /* paste into item */
bi.tb = tb; bi.tb = tb;