btrfs-progs: cleanup nonsense ret value assignment

The "ret" will be soon used to hold the return value of another function,
assign -1 to it before is nonsense.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Gui Hecheng 2014-02-13 11:16:37 +08:00 committed by Chris Mason
parent 7fc99ec285
commit 1500c52c75
1 changed files with 0 additions and 2 deletions

View File

@ -291,8 +291,6 @@ static int __load_free_space_cache(struct btrfs_root *root,
return 0;
}
ret = -1;
leaf = path->nodes[0];
header = btrfs_item_ptr(leaf, path->slots[0],
struct btrfs_free_space_header);