[PATCH] platform/x86: thinkpad_acpi: Initialize local in_tablet_mode

2016-12-14 Thread Darren Hart
linux-next reported in_tablet_mode may be used uninitialized after: b31800283868 ("platform/x86: thinkpad_acpi: Move tablet detection into separate function") This turns out to be a false positive as the pr_info call cannot be reached if tp_features.hotkey_tablet (global scope) is 0, and

[PATCH] platform/x86: thinkpad_acpi: Initialize local in_tablet_mode

2016-12-14 Thread Darren Hart
linux-next reported in_tablet_mode may be used uninitialized after: b31800283868 ("platform/x86: thinkpad_acpi: Move tablet detection into separate function") This turns out to be a false positive as the pr_info call cannot be reached if tp_features.hotkey_tablet (global scope) is 0, and