linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: bcollins@debian.org
Subject: [PATCH][2.6] fix warning in iee1394 nodemgr
Date: Wed, 16 Jul 2003 02:01:12 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0307160159330.32541@montezuma.mastecende.com> (raw)

Looks like a sensible default

drivers/ieee1394/nodemgr.c: In function `nodemgr_host_thread':
drivers/ieee1394/nodemgr.c:1621: warning: `generation' might be used uninitialized in this function

Index: linux-2.5/drivers/ieee1394/nodemgr.c
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/ieee1394/nodemgr.c,v
retrieving revision 1.28
diff -u -p -B -r1.28 nodemgr.c
--- linux-2.5/drivers/ieee1394/nodemgr.c	29 Jun 2003 18:51:20 -0000	1.28
+++ linux-2.5/drivers/ieee1394/nodemgr.c	16 Jul 2003 03:54:56 -0000
@@ -1618,7 +1618,7 @@ static int nodemgr_host_thread(void *__h
 	 * happens when we get a bus reset. */
 	while (!down_interruptible(&hi->reset_sem) &&
 	       !down_interruptible(&nodemgr_serialize)) {
-		unsigned int generation;
+		unsigned int generation = get_hpsb_generation(host);
 		int i;
 
 		/* Pause for 1/4 second, to make sure things settle down. */

-- 
function.linuxpower.ca

             reply	other threads:[~2003-07-16  5:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16  6:01 Zwane Mwaikambo [this message]
2003-07-16 14:10 ` [PATCH][2.6] fix warning in iee1394 nodemgr Ben Collins
2003-07-16 14:46   ` David S. Miller
2003-07-16 14:50     ` Ben Collins
2003-07-16 16:21     ` Zwane Mwaikambo

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=Pine.LNX.4.53.0307160159330.32541@montezuma.mastecende.com \
    --to=zwane@arm.linux.org.uk \
    --cc=bcollins@debian.org \
    --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;
as well as URLs for NNTP newsgroup(s).