diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2022-10-05 18:00:45 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-11-16 10:48:18 +0300 |
commit | 0b9a1dcdb6a2c841899389bf2dd7a3e0e2aa0e99 (patch) | |
tree | 9f8935d21e884f2421a7a0523513b0f7fecf89ff /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d6fef93258f3b902f5166297b05d72746e16e1f7 (diff) | |
download | linux-0b9a1dcdb6a2c841899389bf2dd7a3e0e2aa0e99.tar.xz |
platform/x86: huawei-wmi: fix return value calculation
Previously, `huawei_wmi_input_setup()` returned the result of
logical or-ing the return values of two functions that return negative
errno-style error codes and one that returns `acpi_status`. If this
returned value was non-zero, then it was propagated from the platform
driver's probe function. That function should return a negative
errno-style error code, so the result of the logical or that
`huawei_wmi_input_setup()` returned was not appropriate.
Fix that by checking each function separately and returning the
error code unmodified.
Fixes: 1ac9abeb2e5b ("platform/x86: huawei-wmi: Move to platform driver")
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20221005150032.173198-2-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions