public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial/8250: fix uninitialized warnings
@ 2008-11-04 17:26 KOSAKI Motohiro
  2008-11-04 17:41 ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: KOSAKI Motohiro @ 2008-11-04 17:26 UTC (permalink / raw)
  To: linux-serial, LKML; +Cc: kosaki.motohiro


fix following warnings.

drivers/serial/8250.c: In function ‘serial8250_shutdown’:
drivers/serial/8250.c:1612: warnings: ‘i’ may be used uninitialized in this function


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: linux-serial@vger.kernel.org
---
 drivers/serial/8250.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/serial/8250.c
===================================================================
--- a/drivers/serial/8250.c	2008-11-05 01:10:11.000000000 +0900
+++ b/drivers/serial/8250.c	2008-11-05 01:38:39.000000000 +0900
@@ -1609,7 +1609,7 @@ static int serial_link_irq_chain(struct 
 
 static void serial_unlink_irq_chain(struct uart_8250_port *up)
 {
-	struct irq_info *i;
+	struct irq_info *i = NULL;
 	struct hlist_node *n;
 	struct hlist_head *h;
 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-11  0:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 17:26 [PATCH] serial/8250: fix uninitialized warnings KOSAKI Motohiro
2008-11-04 17:41 ` Alan Cox
2008-11-05  4:51   ` KOSAKI Motohiro
2008-11-10 22:30   ` Andrew Morton
2008-11-10 23:47     ` Alan Cox
2008-11-10 23:48     ` Alan Cox
2008-11-10 23:58       ` Andrew Morton
2008-11-11  0:19         ` David Miller

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