From: Chris Mason Date: Tue, 1 Feb 2011 00:54:59 +0000 (-0500) Subject: Btrfs: avoid uninit variable warnings in ordered-data.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c87fb6fdcaf7560940b31a0c78c3e6370e3433cf;p=linux-beck.git 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 --- 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;