Commit 2314a0f6 authored by Tobias Klauser's avatar Tobias Klauser Committed by Greg Kroah-Hartman

tty: serial: altera_jtaguart: Don't use plain integer as NULL pointer

This fixes a sparse warning.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f023eab3
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment