[PATCH 1/1] Fix build warning in hd.c

From: Felix Oxley
Date: Sun Oct 16 2005 - 20:20:47 EST


From: Felix Oxley <lkml@xxxxxxxxx>

Fix:
drivers/ide/legacy/hd.c: In function âhd_requestâ:
drivers/ide/legacy/hd.c:424: warning: âstatâ may be used uninitialized in this function

Signed-off-by: Felix Oxley <lkml@xxxxxxxxx>
---
--- ./drivers/ide/legacy/hd.orig 2005-10-17 02:05:29.000000000 +0100
+++ ./drivers/ide/legacy/hd.c 2005-10-17 02:06:13.000000000 +0100
@@ -421,7 +421,7 @@ static void bad_rw_intr(void)

static inline int wait_DRQ(void)
{
- int retries = 100000, stat;
+ int retries = 100000, stat = 0;

while (--retries > 0)
if ((stat = inb_p(HD_STATUS)) & DRQ_STAT)
-
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/