Messages in this thread Patch in this message | | | From | Kumar Gala <> | Subject | [PATCH] 8250: Fix compiler warning | Date | Thu, 4 Aug 2011 03:13:01 -0500 |
| |
drivers/tty/serial/8250.c: In function 'serial8250_shutdown': drivers/tty/serial/8250.c:1775:19: warning: 'i' may be used uninitialized in this function
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> --- drivers/tty/serial/8250.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c index f2dfec8..44de222 100644 --- a/drivers/tty/serial/8250.c +++ b/drivers/tty/serial/8250.c @@ -1772,7 +1772,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.7.3.4
| |