[patch] ftape: shut up gcc - warning about possibly uninitialized var in drivers/char/ftape/lowlevel/ftape-io.c
Jesper Juhl <[email protected]> Fri, 7 Jan 2005 00:49:22 +0100 (CET)
| Newsgroups | gmane.linux.kernel,gmane.linux.tape |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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);