diff options
author | Carlo Caione <carlo@endlessm.com> | 2017-04-19 20:36:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-15 14:53:17 (GMT) |
commit | 07e415ac5ca1161d078cc02348dd0df58d88679b (patch) | |
tree | f7388207dbc72648dd9d54db2fceb7330aec2581 /include | |
parent | 0a18a94af43f934e00b438d466996c37769d5daf (diff) | |
download | linux-07e415ac5ca1161d078cc02348dd0df58d88679b.tar.xz |
platform/x86: hp-wmi: Do not shadow error values
commit d313876925f3e7a480a02773fd333bcab9202d5e upstream.
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>
Cc: Philip Müller <philm@manjaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions