btrfs-progs: cleanup nonsense ret value assignment
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 13 Feb 2014 03:16:37 +0000 (11:16 +0800)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:16 +0000 (06:23 -0700)
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>
free-space-cache.c

index 55d7318..bddde24 100644 (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);