mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-07 05:04:04 +08:00
ACPI / osl: Propagate actual error code for kstrtoul()
There is no need to override the error code returned by kstrtoul(). Propagate it directly to the caller. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
3e5de27e94
commit
5dcb9ca840
@ -181,9 +181,7 @@ void acpi_os_vprintf(const char *fmt, va_list args)
|
|||||||
static unsigned long acpi_rsdp;
|
static unsigned long acpi_rsdp;
|
||||||
static int __init setup_acpi_rsdp(char *arg)
|
static int __init setup_acpi_rsdp(char *arg)
|
||||||
{
|
{
|
||||||
if (kstrtoul(arg, 16, &acpi_rsdp))
|
return kstrtoul(arg, 16, &acpi_rsdp);
|
||||||
return -EINVAL;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
early_param("acpi_rsdp", setup_acpi_rsdp);
|
early_param("acpi_rsdp", setup_acpi_rsdp);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user