From: "Pranith Kumar" <bobby.prani@gmail.com>
To: paulkf@microgate.com
Cc: LKML <linux-kernel@vger.kernel.org>, trivial@kernel.org
Subject: [Patch 1/1] Trivial - drivers/char/synclink_gt.c: fix warning
Date: Mon, 12 May 2008 15:56:41 +0530 [thread overview]
Message-ID: <430c80e90805120326v20a604b0m2cf0d15a5508717c@mail.gmail.com> (raw)
Hello,
This patch fixes the warning i get
drivers/char/synclink_gt.c: In function `put_char':
drivers/char/synclink_gt.c:919: warning: 'ret' might be used
uninitialized in this function
Signed-off-by: D Pranith Kumar
--- linux-2.6.26-rc2/drivers/char/synclink_gt.c.orig 2008-05-12
15:45:36.000000000 +0530
+++ linux-2.6.26-rc2/drivers/char/synclink_gt.c 2008-05-12
15:46:00.000000000 +0530
@@ -916,7 +916,7 @@ static int put_char(struct tty_struct *t
{
struct slgt_info *info = tty->driver_data;
unsigned long flags;
- int ret;
+ int ret = 0;
if (sanity_check(info, tty->name, "put_char"))
return 0;
reply other threads:[~2008-05-12 10:26 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=430c80e90805120326v20a604b0m2cf0d15a5508717c@mail.gmail.com \
--to=bobby.prani@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulkf@microgate.com \
--cc=trivial@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®