1
0
Fork 0

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>
hifive-unleashed-5.1
Tobias Klauser 2011-02-18 16:38:37 +01:00 committed by Greg Kroah-Hartman
parent f023eab379
commit 2314a0f667
1 changed files with 1 additions and 1 deletions

View 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;
}