From: Andy Shevchenko Date: Fri, 2 Dec 2016 17:42:46 +0000 (+0200) Subject: ACPI / osl: Propagate actual error code for kstrtoul() X-Git-Tag: v4.10-rc1~151^2~2^4~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dcb9ca8403c31f4a9a6e21b0057be3bdefb7414;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 416953a425109..d47df72990dd6 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