mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Patch 1/1] Trivial - drivers/char/synclink_gt.c: fix warning
@ 2008-05-12 10:26 Pranith Kumar
  0 siblings, 0 replies; only message in thread
From: Pranith Kumar @ 2008-05-12 10:26 UTC (permalink / raw)
  To: paulkf; +Cc: LKML, trivial

Hello,

This patch fixes the warning i get
drivers/char/synclink_gt.c: In function `put_char':
drivers/char/synclink_gt.c:919: warning: 'ret' might be used
uninitialized in this function

Signed-off-by: D Pranith Kumar

--- linux-2.6.26-rc2/drivers/char/synclink_gt.c.orig	2008-05-12
15:45:36.000000000 +0530
+++ linux-2.6.26-rc2/drivers/char/synclink_gt.c	2008-05-12
15:46:00.000000000 +0530
@@ -916,7 +916,7 @@ static int put_char(struct tty_struct *t
 {
 	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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-12 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-12 10:26 [Patch 1/1] Trivial - drivers/char/synclink_gt.c: fix warning Pranith Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®