public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 8250: Eliminate compile warning of 8250.c
@ 2008-11-25  3:55 Sheng Yang
  2008-11-25  3:58 ` Sheng Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Sheng Yang @ 2008-11-25  3:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-serial, Sheng Yang, Alan Cox

The patch based on linux-2.6 upstream and elimiate this compile warning
info:

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

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
CC: Alan Cox <alan@redhat.com>
---
 drivers/serial/8250.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 303272a..c78eee6 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -1609,7 +1609,7 @@ static int serial_link_irq_chain(struct uart_8250_port *up)
 
 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;
 
-- 
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25  3:55 [PATCH] 8250: Eliminate compile warning of 8250.c Sheng Yang
2008-11-25  3:58 ` Sheng Yang
2008-11-25 10:22   ` Alan Cox
2008-11-25 10:31     ` Sheng Yang
2008-11-25 10:43       ` Alan Cox
2008-11-25 10:51         ` Sheng Yang
2008-11-25 11:12           ` Olivier Galibert
2008-11-25 11:13           ` Alan Cox
2008-11-25 11:32             ` Sheng Yang

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