Commit 6c82c415 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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 <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f36f21ec
...@@ -916,7 +916,7 @@ static int put_char(struct tty_struct *tty, unsigned char ch) ...@@ -916,7 +916,7 @@ static int put_char(struct tty_struct *tty, unsigned char ch)
{ {
struct slgt_info *info = tty->driver_data; struct slgt_info *info = tty->driver_data;
unsigned long flags; unsigned long flags;
int ret; int ret = 0;
if (sanity_check(info, tty->name, "put_char")) if (sanity_check(info, tty->name, "put_char"))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment