diff mbox

fs/btrfs/ordered-data.c: fixed compiler warnings for using uninitialized variable

Message ID 1284129724.23418.27.camel@ubuntu1004pl (mailing list archive)
State New, archived
Headers show

Commit Message

Frank Morales II Sept. 10, 2010, 2:42 p.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;