Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754441Ab0HQH7N (ORCPT ); Tue, 17 Aug 2010 03:59:13 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:36166 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221Ab0HQH7M (ORCPT ); Tue, 17 Aug 2010 03:59:12 -0400 From: Michal Simek To: michal.simek@petalogix.com Cc: Michal Simek , Greg Kroah-Hartman , Alan Cox , Andrew Morton , Ralf Baechle , Manuel Lauss , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] serial: 8250: Initialize pointer to irq_info Date: Tue, 17 Aug 2010 09:59:06 +0200 Message-Id: <1282031947-16483-1-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 40 Initialize "i" irq_info pointer in serial_unlink_irq_chain. Compilation warning: CC drivers/serial/8250.o drivers/serial/8250.c: In function 'serial8250_shutdown': drivers/serial/8250.c:1701: warning: 'i' may be used uninitialized in this function Signed-off-by: Michal Simek CC: Greg Kroah-Hartman CC: Alan Cox CC: Andrew Morton CC: Ralf Baechle CC: Manuel Lauss CC: linux-serial@vger.kernel.org CC: linux-kernel@vger.kernel.org --- 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 24110f6..6c847d3 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -1698,7 +1698,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.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/