Skip to contentSkip to conversation

8250_early.c passing 0 instead of NULL

PATCH New Ben Dooks 1 participant 1 message Oct 11, 2005

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 8250_early.c passing 0 instead of NULL

Fix sparse warning about passing 0 to
simple_strtoul()

drivers/serial/8250_early.c +1 -1
@@ -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 {