From: Jesper Juhl <juhl-lkml@dif.dk>
To: linux-tape@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [patch] ftape: shut up gcc - warning about possibly uninitialized var in drivers/char/ftape/lowlevel/ftape-io.c
Date: Fri, 7 Jan 2005 00:49:22 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.61.0501070043400.3430@dragon.hygekrogen.localhost> (raw)
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);
reply other threads:[~2005-01-06 23:40 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=Pine.LNX.4.61.0501070043400.3430@dragon.hygekrogen.localhost \
--to=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tape@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®