[PATCH -tip] sdhci: 'scratch' may be used uninitialized

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Noonan
Date: Wednesday, October 1, 2008 - 1:14 am

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 drivers/mmc/host/sdhci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index e3a8133..6257677 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -177,7 +177,7 @@ static void sdhci_read_block_pio(struct sdhci_host *host)
 {
 	unsigned long flags;
 	size_t blksize, len, chunk;
-	u32 scratch;
+	u32 uninitialized_var(scratch);
 	u8 *buf;
 
 	DBG("PIO reading\n");
-- 
1.6.0.2

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -tip] pcm_native: label out defined but not used, Steven Noonan, (Wed Oct 1, 12:57 am)
[PATCH -tip] sdhci: 'scratch' may be used uninitialized, Steven Noonan, (Wed Oct 1, 12:57 am)
[PATCH -tip] pcm_native: label out defined but not used, Steven Noonan, (Wed Oct 1, 1:12 am)
[PATCH -tip] sdhci: 'scratch' may be used uninitialized, Steven Noonan, (Wed Oct 1, 1:14 am)
[PATCH] sdhci: 'scratch' may be used uninitialized, Steven Noonan, (Wed Oct 1, 1:50 am)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Pierre Ossman, (Sat Oct 4, 12:57 pm)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Steven Noonan, (Sun Oct 5, 3:53 pm)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Steven Noonan, (Sun Oct 5, 4:48 pm)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Adrian Bunk, (Sun Oct 5, 10:59 pm)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Ingo Molnar, (Sun Oct 5, 11:30 pm)
Re: [PATCH] sdhci: 'scratch' may be used uninitialized, Pierre Ossman, (Mon Oct 6, 12:27 am)