提交 70eebd0b 编写于 作者: A Anton Vorontsov 提交者: Greg Kroah-Hartman

altera_uart: Don't use plain integer as NULL pointer

Fixes sparse warning.
Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: NTobias Klauser <tklauser@distanz.ch>
上级 5d89a48a
......@@ -461,7 +461,7 @@ static int __init altera_uart_console_setup(struct console *co, char *options)
if (co->index < 0 || co->index >= CONFIG_SERIAL_ALTERA_UART_MAXPORTS)
return -EINVAL;
port = &altera_uart_ports[co->index].port;
if (port->membase == 0)
if (!port->membase)
return -ENODEV;
if (options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册