projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06024f2
)
[SERIAL] 8250_early.c passing 0 instead of NULL
author
Ben Dooks
<ben-linux@fluff.org>
Thu, 3 Nov 2005 21:07:37 +0000
(21:07 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 3 Nov 2005 21:07:37 +0000
(21:07 +0000)
Fix sparse warning about passing `0` to simple_strtoul()
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/8250_early.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/8250_early.c
b/drivers/serial/8250_early.c
index b7a5dd71022850336a17fb6c662cee58ebf9cf26..59ba5d993b4b6ef2fb66fc3b883639c78f19a91e 100644
(file)
--- a/
drivers/serial/8250_early.c
+++ b/
drivers/serial/8250_early.c
@@
-164,7
+164,7
@@
static int __init parse_options(struct early_uart_device *device, char *options)
if ((options = strchr(options, ','))) {
options++;
- device->baud = simple_strtoul(options,
0
, 0);
+ device->baud = simple_strtoul(options,
NULL
, 0);
length = min(strcspn(options, " "), sizeof(device->options));
strncpy(device->options, options, length);
} else {