* [PATCH] 8250_early.c passing 0 instead of NULL
@ 2005-10-11 23:02 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2005-10-11 23:02 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
Fix sparse warning about passing `0` to
simple_strtoul()
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[-- Attachment #2: 8250-fix-null.patch --]
[-- Type: text/plain, Size: 517 bytes --]
--- linux-2.6.14-rc4/drivers/serial/8250_early.c 2005-06-17 20:48:29.000000000 +0100
+++ linux-2.6.14-rc4-bjd1/drivers/serial/8250_early.c 2005-10-12 00:01:02.000000000 +0100
@@ -164,7 +164,7 @@ static int __init parse_options(struct e
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 {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-11 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 23:02 [PATCH] 8250_early.c passing 0 instead of NULL Ben Dooks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.