diff options
author | Carlo Caione <carlo@endlessm.com> | 2017-04-19 22:36:39 +0200 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-19 22:54:19 +0200 |
commit | d313876925f3e7a480a02773fd333bcab9202d5e (patch) | |
tree | 47b647fd140d105067ec50591fef232fbeaaafd6 /firmware/bnx2x | |
parent | platform/x86: fujitsu-laptop: simplify error handling in acpi_fujitsu_laptop_... (diff) | |
download | linux-d313876925f3e7a480a02773fd333bcab9202d5e.tar.xz linux-d313876925f3e7a480a02773fd333bcab9202d5e.zip |
platform/x86: hp-wmi: Do not shadow error values
All the helper functions (i.e. hp_wmi_dock_state, hp_wmi_tablet_state,
...) using hp_wmi_perform_query to perform an HP WMI query shadow the
returned value in case of error.
We return -EINVAL only when the HP WMI query returns a positive value
(the specific error code) to not mix this up with the actual value
returned by the helper function.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'firmware/bnx2x')
0 files changed, 0 insertions, 0 deletions