Skip to content

Commit

Permalink
tty: serial: altera_jtaguart: Don't use plain integer as NULL pointer
Browse files Browse the repository at this point in the history
This fixes a sparse warning.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Feb 22, 2011
1 parent f023eab commit 2314a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/altera_jtaguart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2314a0f

Please sign in to comment.