mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] Fix build warning in hd.c
@ 2005-10-17  1:19 Felix Oxley
  0 siblings, 0 replies; only message in thread
From: Felix Oxley @ 2005-10-17  1:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: B.Zolnierkiewicz

From: Felix Oxley <lkml@oxley.org>

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@oxley.org>
---
--- ./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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-17  1:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-17  1:19 [PATCH 1/1] Fix build warning in hd.c Felix Oxley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®