mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] ftape: shut up gcc - warning about possibly uninitialized var in drivers/char/ftape/lowlevel/ftape-io.c
@ 2005-01-06 23:49 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-01-06 23:49 UTC (permalink / raw)
  To: linux-tape; +Cc: linux-kernel


Tiny patch whose only purpose in life is to shut up gcc below 
(initializing flags to zero serves no real purpose in this function, so 
this really is just a 'shut up gcc' patch) : 

This is the warning it will elliminate : 
drivers/char/ftape/lowlevel/ftape-io.c:93: warning: 'flags' might be used uninitialized in this function

Apply if you want, if you don't that's just fine too :)


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

diff -up linux-2.6.10-bk9-orig/drivers/char/ftape/lowlevel/ftape-format.c linux-2.6.10-bk9/drivers/char/ftape/lowlevel/ftape-format.c
--- linux-2.6.10-bk9-orig/drivers/char/ftape/lowlevel/ftape-format.c	2004-12-24 22:34:45.000000000 +0100
+++ linux-2.6.10-bk9/drivers/char/ftape/lowlevel/ftape-format.c	2005-01-07 00:43:22.000000000 +0100
@@ -91,7 +91,7 @@ static void setup_format_buffer(buffer_s
  */
 int ftape_format_track(const unsigned int track, const __u8 gap3)
 {
-	unsigned long flags;
+	unsigned long flags = 0;
 	buffer_struct *tail, *head;
 	int status;
 	TRACE_FUN(ft_t_flow);



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

only message in thread, other threads:[~2005-01-06 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-06 23:49 [patch] ftape: shut up gcc - warning about possibly uninitialized var in drivers/char/ftape/lowlevel/ftape-io.c Jesper Juhl

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®