linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][2.6] fix warning in iee1394 nodemgr
@ 2003-07-16  6:01 Zwane Mwaikambo
  2003-07-16 14:10 ` Ben Collins
  0 siblings, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2003-07-16  6:01 UTC (permalink / raw)
  To: Linux Kernel; +Cc: bcollins

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-16 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16  6:01 [PATCH][2.6] fix warning in iee1394 nodemgr Zwane Mwaikambo
2003-07-16 14:10 ` Ben Collins
2003-07-16 14:46   ` David S. Miller
2003-07-16 14:50     ` Ben Collins
2003-07-16 16:21     ` Zwane Mwaikambo

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).