mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SERIAL] 8250_early.c passing 0 instead of NULL
Fix sparse warning about passing `0` to simple_strtoul() Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
06024f217d
commit
b2281abf11
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue