]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Initialize hotkey_event_type variable
authorAzael Avalos <coproscefalo@gmail.com>
Wed, 4 Nov 2015 16:28:26 +0000 (09:28 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 6 Nov 2015 00:09:24 +0000 (16:09 -0800)
commit6fbdedb49a6a2823a8357ac7f3c30a23d9881f88
tree17314544909f8bd4ab5e133556b0448238acfc20
parent2353352f0726d478d46eadbb48880482cf1e7330
toshiba_acpi: Initialize hotkey_event_type variable

Commit 3432688a1b1e8dba89ea61230109748b6e347214 ("toshiba_acpi: Fix
hotkeys registration on some toshiba models") fixed an issue on some
laptops regarding hotkeys registration, however, if failed to address
the initialization of the hotkey_event_type variable, and thus, it can
lead to potential unwanted effects as the variable is being checked.

This patch initializes such variable to avoid such unwanted effects.

Cc: <stable@vger.kernel.org> # 4.1+
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c