diff mbox

[1/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function

Message ID 20100911061023.GA18545@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jεan Sacren Sept. 11, 2010, 6:10 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index e56c72b..fad2616 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;