Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2281abf authored by Ben Dooks's avatar Ben Dooks Committed by Russell King
Browse files

[SERIAL] 8250_early.c passing 0 instead of NULL



Fix sparse warning about passing `0` to  simple_strtoul()

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 06024f21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {