Re: [PATCH] Fix warning in powernow-k8.c

From: Pavel Machek
Date: Fri Jun 03 2005 - 14:01:47 EST


On Pá 03-06-05 14:31:48, Brian Gerst wrote:
> Pavel Machek wrote:
> >Hi!
> >
> >
> >>Fix this warning:
> >>powernow-k8.c: In function ?query_current_values_with_pending_wait?:
> >>powernow-k8.c:110: warning: ?hi? may be used uninitialized in this
> >>function
> >
> >
> >Are you sure?
> >
> >Original code is clearly buggy; I do not think you need that ugly do
> >{} while loop.
>
> I'm not sure why you think the loop is ugly. It makes it more obvious
> (to us humans and the compiler) that the loop is executed at least
> one time.

Oops, sorry, I misread the patch.
Pavel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/