summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-02-01 01:54:59 +0100
committerChris Mason <chris.mason@oracle.com>2011-02-01 02:33:37 +0100
commitc87fb6fdcaf7560940b31a0c78c3e6370e3433cf (patch)
tree2a3282ae70ca1da55281bba13e6a1f7216e49d3b
parentBtrfs: catch errors from btrfs_sync_log (diff)
downloadlinux-c87fb6fdcaf7560940b31a0c78c3e6370e3433cf.tar.xz
linux-c87fb6fdcaf7560940b31a0c78c3e6370e3433cf.zip
Btrfs: avoid uninit variable warnings in ordered-data.c
This one isn't really an uninit variable, but for pretty obscure reasons. Let's make it clearly correct. Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/ordered-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index 2b61e1ddcd99..083a55477375 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -141,7 +141,7 @@ static inline struct rb_node *tree_search(struct btrfs_ordered_inode_tree *tree,
u64 file_offset)
{
struct rb_root *root = &tree->tree;
- struct rb_node *prev;
+ struct rb_node *prev = NULL;
struct rb_node *ret;
struct btrfs_ordered_extent *entry;