gcc 4.6: fix potentially unused variable

Fix a complaint by gcc 4.6 that "ret" may be unused in
process_one_leaf of btrfsck.

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
master
Hugo Mills 2011-07-28 22:17:57 +01:00 committed by Chris Mason
parent 3516e6b56e
commit db9831e4f4
1 changed files with 1 additions and 1 deletions

View File

@ -995,7 +995,7 @@ static int process_one_leaf(struct btrfs_root *root, struct extent_buffer *eb,
struct btrfs_key key;
u32 nritems;
int i;
int ret;
int ret = 0;
struct cache_tree *inode_cache;
struct shared_node *active_node;