All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] EXT3 compiler warning fix
@ 2004-11-08 14:32 dhowells
  2004-11-09 17:00 ` Stephen C. Tweedie
  0 siblings, 1 reply; 2+ messages in thread
From: dhowells @ 2004-11-08 14:32 UTC (permalink / raw)
  To: torvalds, akpm, davidm, sct; +Cc: linux-kernel, uclinux-dev

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: dhowells@redhat.com
---
diffstat ext3-2610rc1mm3.diff
 balloc.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -uNrp /warthog/kernels/linux-2.6.10-rc1-mm3/fs/ext3/balloc.c linux-2.6.10-rc1-mm3-frv/fs/ext3/balloc.c
--- /warthog/kernels/linux-2.6.10-rc1-mm3/fs/ext3/balloc.c	2004-11-05 13:15:39.000000000 +0000
+++ linux-2.6.10-rc1-mm3-frv/fs/ext3/balloc.c	2004-11-05 14:13:03.775506583 +0000
@@ -194,8 +194,7 @@ static struct reserve_window_node *searc
 	if (!n)
 		return NULL;
 
-	while (n)
-	{
+	do {
 		rsv = rb_entry(n, struct reserve_window_node, rsv_node);
 
 		if (goal < rsv->rsv_start)
@@ -204,7 +203,7 @@ static struct reserve_window_node *searc
 			n = n->rb_right;
 		else
 			return rsv;
-	}
+	} while (n);
 	/*
 	 * 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] EXT3 compiler warning fix
  2004-11-08 14:32 [PATCH] EXT3 compiler warning fix dhowells
@ 2004-11-09 17:00 ` Stephen C. Tweedie
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 2004-11-09 17:00 UTC (permalink / raw)
  To: David Howells
  Cc: Linus Torvalds, Andrew Morton, davidm, linux-kernel, uclinux-dev,
	Stephen Tweedie

Hi,

On Mon, 2004-11-08 at 14:32, dhowells@redhat.com wrote:
> 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.

Looks good to me.

--Stephen


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-09 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 14:32 [PATCH] EXT3 compiler warning fix dhowells
2004-11-09 17:00 ` Stephen C. Tweedie

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.