Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chris.mason@oracle.com>

+1 -1
+1 -1
fs/btrfs/ordered-data.c
··· 141 u64 file_offset) 142 { 143 struct rb_root *root = &tree->tree; 144 - struct rb_node *prev; 145 struct rb_node *ret; 146 struct btrfs_ordered_extent *entry; 147
··· 141 u64 file_offset) 142 { 143 struct rb_root *root = &tree->tree; 144 + struct rb_node *prev = NULL; 145 struct rb_node *ret; 146 struct btrfs_ordered_extent *entry; 147