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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f36f21ecca
commit
6c82c41509
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue