[<prev] [next>] [day] [month] [year] [list]
Message-ID: <430c80e90805120326v20a604b0m2cf0d15a5508717c@mail.gmail.com>
Date: Mon, 12 May 2008 15:56:41 +0530
From: "Pranith Kumar" <bobby.prani@...il.com>
To: paulkf@...rogate.com
Cc: LKML <linux-kernel@...r.kernel.org>, trivial@...nel.org
Subject: [Patch 1/1] Trivial - drivers/char/synclink_gt.c: fix warning
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists