diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-02-18 10:38:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-22 18:50:03 -0500 |
commit | 2314a0f667352748a48753bf903f8c50fd2a756d (patch) | |
tree | 3845d47d40b8c7214a4f0319cfc553503da9119b /drivers | |
parent | f023eab379821365bf265a0240f30c00cecaef7c (diff) |
tty: serial: altera_jtaguart: Don't use plain integer as NULL pointer
This fixes a sparse warning.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/altera_jtaguart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/altera_jtaguart.c b/drivers/tty/serial/altera_jtaguart.c index f9b49b5ff5e1..0c0a8b60f2d6 100644 --- a/drivers/tty/serial/altera_jtaguart.c +++ b/drivers/tty/serial/altera_jtaguart.c | |||
@@ -384,7 +384,7 @@ static int __init altera_jtaguart_console_setup(struct console *co, | |||
384 | if (co->index < 0 || co->index >= ALTERA_JTAGUART_MAXPORTS) | 384 | if (co->index < 0 || co->index >= ALTERA_JTAGUART_MAXPORTS) |
385 | return -EINVAL; | 385 | return -EINVAL; |
386 | port = &altera_jtaguart_ports[co->index].port; | 386 | port = &altera_jtaguart_ports[co->index].port; |
387 | if (port->membase == 0) | 387 | if (port->membase == NULL) |
388 | return -ENODEV; | 388 | return -ENODEV; |
389 | return 0; | 389 | return 0; |
390 | } | 390 | } |