]> err.no Git - linux-2.6/commitdiff
[SERIAL] 8250_early.c passing 0 instead of NULL
authorBen Dooks <ben-linux@fluff.org>
Thu, 3 Nov 2005 21:07:37 +0000 (21:07 +0000)
committerRussell 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

index b7a5dd71022850336a17fb6c662cee58ebf9cf26..59ba5d993b4b6ef2fb66fc3b883639c78f19a91e 100644 (file)
@@ -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 {