]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
neo: Remove a bogus NULL check
authorAlan Cox <alan@redhat.com>
Sun, 11 Jan 2009 19:48:34 +0000 (19:48 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Jan 2009 00:37:00 +0000 (16:37 -0800)
Julia Lawall found an un-needed check in the neo driver. Her patch moves
the check to cover the code dereferencing it, however it cannot be NULL
anyway so remove the NULL check instead.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/jsm/jsm_neo.c

index b7584ca55adef310231c074f30ba5cf438aa6cef..e6390d023634ce978beced44b34299656b846faa 100644 (file)
@@ -577,9 +577,6 @@ static void neo_parse_modem(struct jsm_channel *ch, u8 signals)
        jsm_printk(MSIGS, INFO, &ch->ch_bd->pci_dev,
                        "neo_parse_modem: port: %d msignals: %x\n", ch->ch_portnum, msignals);
 
-       if (!ch)
-               return;
-
        /* Scrub off lower bits. They signify delta's, which I don't care about */
        /* Keep DDCD and DDSR though */
        msignals &= 0xf8;