projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d89a48
)
altera_uart: Don't use plain integer as NULL pointer
author
Anton Vorontsov
<cbouatmailru@gmail.com>
Fri, 1 Oct 2010 13:23:13 +0000
(17:23 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 22 Oct 2010 17:20:09 +0000
(10:20 -0700)
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>
drivers/serial/altera_uart.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/altera_uart.c
b/drivers/serial/altera_uart.c
index dfc1ecc40abcc4029bcba1c82e51ead2682afad1..721216292a5049882847e9712735b0ca82950b1e 100644
(file)
--- 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)