projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc99ec
)
btrfs-progs: cleanup nonsense ret value assignment
author
Gui Hecheng
<guihc.fnst@cn.fujitsu.com>
Thu, 13 Feb 2014 03:16:37 +0000
(11:16 +0800)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/free-space-cache.c
b/free-space-cache.c
index
55d7318
..
bddde24
100644
(file)
--- 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);