mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f36f21ecca
commit
6c82c41509
1 changed files with 1 additions and 1 deletions
|
|
@ -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