Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Ben Dooks and committed by
Russell King
b2281abf 06024f21

+1 -1
+1 -1
drivers/serial/8250_early.c
··· 164 164 165 165 if ((options = strchr(options, ','))) { 166 166 options++; 167 - device->baud = simple_strtoul(options, 0, 0); 167 + device->baud = simple_strtoul(options, NULL, 0); 168 168 length = min(strcspn(options, " "), sizeof(device->options)); 169 169 strncpy(device->options, options, length); 170 170 } else {