* [PATCH 0/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function @ 2010-09-11 6:08 Jean Sacren 2010-09-11 6:10 ` [PATCH 1/1] " Jean Sacren 0 siblings, 1 reply; 2+ messages in thread From: Jean Sacren @ 2010-09-11 6:08 UTC (permalink / raw) To: Linux BTRFS Filesystem Discussion Hi, Self-explanatory warning message. Jean Sacren (1): btrfs: Fix warning: 'prev' may be used uninitialized in this function fs/btrfs/ordered-data.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- Jean Sacren Bring LAMP To People ^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function 2010-09-11 6:08 [PATCH 0/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function Jean Sacren @ 2010-09-11 6:10 ` Jean Sacren 0 siblings, 0 replies; 2+ messages in thread From: Jean Sacren @ 2010-09-11 6:10 UTC (permalink / raw) To: Linux BTRFS Filesystem Discussion warning: 'prev' may be used uninitialized in this function Initialize the variable 'prev' to NULL so that gcc doesn't complain. Signed-off-by: Jean Sacren <sakiwit@gmail.com> --- fs/btrfs/ordered-data.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-11 6:10 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-09-11 6:08 [PATCH 0/1] btrfs: Fix warning: 'prev' may be used uninitialized in this function Jean Sacren 2010-09-11 6:10 ` [PATCH 1/1] " Jean Sacren
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.