projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e5de27
)
ACPI / osl: Propagate actual error code for kstrtoul()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 2 Dec 2016 17:42:46 +0000
(19:42 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Tue, 6 Dec 2016 21:13:57 +0000
(22:13 +0100)
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>
drivers/acpi/osl.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/osl.c
b/drivers/acpi/osl.c
index 416953a4251094ce2066d724c1d88583b8e89705..d47df72990dd6ac90fb955e6ce934b8a2dba277d 100644
(file)
--- 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