diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-12-02 19:42:46 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-12-06 22:13:57 +0100 |
commit | 5dcb9ca8403c31f4a9a6e21b0057be3bdefb7414 (patch) | |
tree | 7f57301c4d4612fb61067529d8bf64eaf73b64fb /drivers/acpi/osl.c | |
parent | 3e5de27e940d00d8d504dfb96625fb654f641509 (diff) | |
download | linux-5dcb9ca8403c31f4a9a6e21b0057be3bdefb7414.tar.gz linux-5dcb9ca8403c31f4a9a6e21b0057be3bdefb7414.tar.bz2 linux-5dcb9ca8403c31f4a9a6e21b0057be3bdefb7414.zip |
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>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 416953a42510..d47df72990dd 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -181,9 +181,7 @@ void acpi_os_vprintf(const char *fmt, va_list args) static unsigned long acpi_rsdp; static int __init setup_acpi_rsdp(char *arg) { - if (kstrtoul(arg, 16, &acpi_rsdp)) - return -EINVAL; - return 0; + return kstrtoul(arg, 16, &acpi_rsdp); } early_param("acpi_rsdp", setup_acpi_rsdp); #endif |