[Patch 1/1] Trivial - drivers/char/synclink_gt.c: fix warning

From: Pranith Kumar
Date: Mon May 12 2008 - 06:26:53 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/