diff options
author | 2020-09-13 12:02:03 -0700 | |
---|---|---|
committer | 2020-09-24 14:04:52 +0300 | |
commit | 5f38b06db8af3ed6c2fc1b427504ca56fae2eacc (patch) | |
tree | 77d4e9e721b0fba6f3c97ae355f1e93ad5f74921 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform/x86: intel-vbtn: Fix SW_TABLET_MODE always reporting 1 on the HP Pavilion 11 x360 (diff) | |
download | wireguard-linux-5f38b06db8af3ed6c2fc1b427504ca56fae2eacc.tar.xz wireguard-linux-5f38b06db8af3ed6c2fc1b427504ca56fae2eacc.zip |
platform/x86: thinkpad_acpi: initialize tp_nvram_state variable
clang static analysis flags this represenative problem
thinkpad_acpi.c:2523:7: warning: Branch condition evaluates
to a garbage value
if (!oldn->mute ||
^~~~~~~~~~~
In hotkey_kthread() mute is conditionally set by hotkey_read_nvram()
but unconditionally checked by hotkey_compare_and_issue_event().
So the tp_nvram_state variable s[2] needs to be initialized.
Fixes: 01e88f25985d ("ACPI: thinkpad-acpi: add CMOS NVRAM polling for hot keys (v9)")
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: mark gross <mgross@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions