tty: serial: altera_jtaguart: Don't use plain integer as NULL pointer
authorTobias Klauser <tklauser@distanz.ch>
Fri, 18 Feb 2011 15:38:37 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Feb 2011 23:50:03 +0000 (15:50 -0800)
This fixes a sparse warning.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/altera_jtaguart.c

index f9b49b5ff5e1363acabf812f354fe24856152de6..0c0a8b60f2d67c5d3149f07ddb7eadd552428f94 100644 (file)
@@ -384,7 +384,7 @@ static int __init altera_jtaguart_console_setup(struct console *co,
        if (co->index < 0 || co->index >= ALTERA_JTAGUART_MAXPORTS)
                return -EINVAL;
        port = &altera_jtaguart_ports[co->index].port;
-       if (port->membase == 0)
+       if (port->membase == NULL)
                return -ENODEV;
        return 0;
 }