Commit 2c2b4c91 authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] EXT3 compiler warning fix

The attached patch fixes an uninitialised variable warning in ext3.  The
compiler is wrong in this case because it can't analyse the code sufficiently.
Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 49d10c65
...@@ -194,8 +194,7 @@ static struct reserve_window_node *search_reserve_window(struct rb_root *root, ...@@ -194,8 +194,7 @@ static struct reserve_window_node *search_reserve_window(struct rb_root *root,
if (!n) if (!n)
return NULL; return NULL;
while (n) do {
{
rsv = rb_entry(n, struct reserve_window_node, rsv_node); rsv = rb_entry(n, struct reserve_window_node, rsv_node);
if (goal < rsv->rsv_start) if (goal < rsv->rsv_start)
...@@ -204,7 +203,7 @@ static struct reserve_window_node *search_reserve_window(struct rb_root *root, ...@@ -204,7 +203,7 @@ static struct reserve_window_node *search_reserve_window(struct rb_root *root,
n = n->rb_right; n = n->rb_right;
else else
return rsv; return rsv;
} } while (n);
/* /*
* We've fallen off the end of the tree: the goal wasn't inside * We've fallen off the end of the tree: the goal wasn't inside
* any particular node. OK, the previous node must be to one * any particular node. OK, the previous node must be to one
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment