From: Ben Dooks Date: Thu, 3 Nov 2005 21:07:37 +0000 (+0000) Subject: [SERIAL] 8250_early.c passing 0 instead of NULL X-Git-Tag: v2.6.15-rc1~452^2~24^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2281abf115031a5242647e0b5b170ffd3bca994;p=linux-2.6 [SERIAL] 8250_early.c passing 0 instead of NULL Fix sparse warning about passing `0` to simple_strtoul() Signed-off-by: Ben Dooks Signed-off-by: Russell King --- diff --git a/drivers/serial/8250_early.c b/drivers/serial/8250_early.c index b7a5dd7102..59ba5d993b 100644 --- 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 {