projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c10640
)
Btrfs: init old_generation in get_old_root
author
Chris Mason
<chris.mason@fusionio.com>
Sat, 16 Jun 2012 00:02:02 +0000
(20:02 -0400)
committer
Chris Mason
<chris.mason@fusionio.com>
Sat, 16 Jun 2012 00:06:54 +0000
(20:06 -0400)
gcc was giving an uninit variable warning here. Strictly
speaking we don't need to init it, but this will make things
much less error prone.
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index 04b06bcf2ca9d0643af52a70117c23bee527a549..15cbc2bf4ff0ed11f8bb2e163bc1960c65b27fa7 100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-1175,7
+1175,7
@@
get_old_root(struct btrfs_root *root, u64 time_seq)
struct tree_mod_elem *tm;
struct extent_buffer *eb;
struct tree_mod_root *old_root = NULL;
- u64 old_generation;
+ u64 old_generation
= 0
;
u64 logical;
eb = btrfs_read_lock_root_node(root);