public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Removes warning related to use of uninitialized variable i
@ 2011-01-13  2:26 Sukanto Ghosh
  2011-01-13  3:05 ` [PATCH] Removes warning related to use of uninitialized Greg KH
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sukanto Ghosh @ 2011-01-13  2:26 UTC (permalink / raw)
  To: kernel-janitors

Diff against 2.6.37


Signed-off-by: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>

----
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index b25e6e4..add97dd 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -1724,7 +1724,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;

@@ -1739,7 +1739,7 @@ static void serial_unlink_irq_chain(struct
uart_8250_port *up)
        }

        BUG_ON(n = NULL);
-       BUG_ON(i->head = NULL);
+       BUG_ON(i = NULL || i->head = NULL);

        if (list_empty(i->head))
                free_irq(up->port.irq, i);

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

end of thread, other threads:[~2011-01-13 19:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13  2:26 [PATCH] Removes warning related to use of uninitialized variable i Sukanto Ghosh
2011-01-13  3:05 ` [PATCH] Removes warning related to use of uninitialized Greg KH
2011-01-13  4:05 ` [PATCH] Removes warning related to use of uninitialized variable i Sukanto Ghosh
2011-01-13  5:22 ` [PATCH] Removes warning related to use of uninitialized Dan Carpenter
2011-01-13  6:49 ` [PATCH] Removes warning related to use of uninitialized variable i Sukanto Ghosh
2011-01-13  8:21 ` [PATCH] Removes warning related to use of uninitialized variable walter harms
2011-01-13 18:29 ` [PATCH] Removes warning related to use of uninitialized Greg KH
2011-01-13 19:38 ` [PATCH] Removes warning related to use of uninitialized variable i Sukanto Ghosh

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