diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-10-01 17:23:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 10:20:09 -0700 |
commit | 70eebd0b604989705f46697814e48fb4ea1d1bb9 (patch) | |
tree | cf59258bd95cf7fa6bb4f144729b4b52e85510e7 /drivers | |
parent | 5d89a48acfbaae02e7ecf97d4d8cc570a31964c5 (diff) | |
download | linux-70eebd0b604989705f46697814e48fb4ea1d1bb9.tar.bz2 |
altera_uart: Don't use plain integer as NULL pointer
Fixes sparse warning.
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/altera_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index dfc1ecc40abc..721216292a50 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -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) |