Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70eebd0b authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Greg Kroah-Hartman
Browse files

altera_uart: Don't use plain integer as NULL pointer



Fixes sparse warning.

Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: default avatarTobias Klauser <tklauser@distanz.ch>
parent 5d89a48a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)