Skip to content

Commit

Permalink
drivers/char/synclink_gt.c: don't return an uninitialised local
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 13, 2008
1 parent f36f21e commit 6c82c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6c82c41

Please sign in to comment.