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

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}