Re: [PATCH] sdhci: 'scratch' may be used uninitialized

From: Pierre Ossman
Date: Sat Oct 04 2008 - 15:57:33 EST


On Wed, 1 Oct 2008 01:50:25 -0700
Steven Noonan <steven@xxxxxxxxxxxxxx> wrote:

> The variable 'scratch' is always initialized before it's used. The
> conditional which is responsible for initialization of 'scratch' will
> always evaluate 'true' when the first loop iteration occurs, and thus,
> it's properly initialized. GCC doesn't see this, of course, so using
> the uninitialized_var() macro seems to work for silencing this case.
>
> Signed-off-by: Steven Noonan <steven@xxxxxxxxxxxxxx>

Queued, thanks.

Rgds
--
-- Pierre Ossman

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.

Attachment: signature.asc
Description: PGP signature