提交 2314a0f6 编写于 作者: T Tobias Klauser 提交者: Greg Kroah-Hartman

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

This fixes a sparse warning.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册