From: Nelson Castillo <[EMAIL PROTECTED]>

This patch fixes: ‘scratch’ may be used uninitialized in this function.
Let's add a remark because this initialization might be confusing.

Signed-off-by: Nelson Castillo <[EMAIL PROTECTED]>
---

 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..d2850b2 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 scratch = 0; /* avoid warning - initialization below */
        u8 *buf;
 
        DBG("PIO reading\n");

Reply via email to