summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-01-31 19:54:59 -0500
committerChris Mason <chris.mason@oracle.com>2011-01-31 20:33:37 -0500
commitc87fb6fdcaf7560940b31a0c78c3e6370e3433cf (patch)
tree2a3282ae70ca1da55281bba13e6a1f7216e49d3b /fs
parentb31eabd86eb68d3c217e6821078249bc045e698a (diff)
downloadlinux-c87fb6fdcaf7560940b31a0c78c3e6370e3433cf.tar.bz2
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>
Diffstat (limited to 'fs')
-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;