Fix uninitialized variable warning: fs/btrfs/ordered-data.c: In function ''btrfs_dec_test_ordered_pending'': fs/btrfs/ordered-data.c:135: warning: ''prev'' may be used uninitialized in this function Signed-off-by: Prarit Bhargava <prarit@redhat.com> diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index a127c0e..7638f3c 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -132,7 +132,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 *uninitialized_var(prev); struct rb_node *ret; struct btrfs_ordered_extent *entry; -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html