Skip to contentSkip to conversation

Btrfs: fix comipler warning with tree_search

PATCH New Li Dongyang 1 participant 1 message Dec 7, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: fix comipler warning with tree_search

fix comipler warning with tree_search

---
 fs/btrfs/ordered-data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/btrfs/ordered-data.c +1 -1
index ab21c29..8877fa0 100644
@@ -133,7 +133,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;
 
Signature · 1 line
1.6.5.3