]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: peaq-wmi: Remove unnecessary checks from peaq_wmi_exit
authorHans de Goede <hdegoede@redhat.com>
Mon, 30 Oct 2017 13:07:38 +0000 (14:07 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 3 Nov 2017 11:32:09 +0000 (13:32 +0200)
commit81702526a5404e2eb8f72fd9e9aae707af23f5f0
treebd65ab0f194e6af31a01dab6ca2450d2b5eb45d6
parentef71d982a151190cd8ca5b5e437bc09be68d7301
platform/x86: peaq-wmi: Remove unnecessary checks from peaq_wmi_exit

peaq_wmi_exit will only ever get called if peaq_wmi_init succeeds, so
there is no need to repeat the checks from peaq_wmi_init.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/peaq-wmi.c