From 1500c52c75beb830ff4234603d3e9d856aafca75 Mon Sep 17 00:00:00 2001 From: Gui Hecheng Date: Thu, 13 Feb 2014 11:16:37 +0800 Subject: [PATCH] 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 Signed-off-by: David Sterba Signed-off-by: Chris Mason --- free-space-cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/free-space-cache.c b/free-space-cache.c index 55d73185..bddde240 100644 --- a/free-space-cache.c +++ b/free-space-cache.c @@ -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);