From: Andrew Morton Date: Mon, 12 May 2008 21:02:34 +0000 (-0700) Subject: drivers/char/synclink_gt.c: don't return an uninitialised local X-Git-Tag: v2.6.26-rc3~77 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6c82c4150910dedd449194cb6d286b80478f3542;p=linux-2.6-omap-h63xx.git drivers/char/synclink_gt.c: don't return an uninitialised local drivers/char/synclink_gt.c: In function 'put_char': drivers/char/synclink_gt.c:919: warning: 'ret' may be used uninitialized in this function The compiler speaketh truth. Cc: Paul Fulghum Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 2001b0e52dc..55c1653be00 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c @@ -916,7 +916,7 @@ static int put_char(struct tty_struct *tty, unsigned char ch) { 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;