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-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c82c4150910dedd449194cb6d286b80478f3542;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 2001b0e52dc6..55c1653be00c 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;