From: Felix Oxley <lkml@oxley.org>
To: linux-kernel@vger.kernel.org
Cc: B.Zolnierkiewicz@elka.pw.edu.pl
Subject: [PATCH 1/1] Fix build warning in hd.c
Date: Mon, 17 Oct 2005 02:19:36 +0100 [thread overview]
Message-ID: <200510170219.38059.lkml@oxley.org> (raw)
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)
reply other threads:[~2005-10-17 1:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510170219.38059.lkml@oxley.org \
--to=lkml@oxley.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®