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>
This commit is contained in:
parent
f023eab379
commit
2314a0f667
|
@ -384,7 +384,7 @@ static int __init altera_jtaguart_console_setup(struct console *co,
|
||||||
if (co->index < 0 || co->index >= ALTERA_JTAGUART_MAXPORTS)
|
if (co->index < 0 || co->index >= ALTERA_JTAGUART_MAXPORTS)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
port = &altera_jtaguart_ports[co->index].port;
|
port = &altera_jtaguart_ports[co->index].port;
|
||||||
if (port->membase == 0)
|
if (port->membase == NULL)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue