]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_hotkey_notify()
authorMichał Kępień <kernel@kempniu.pl>
Wed, 11 Jan 2017 08:59:30 +0000 (09:59 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:47:17 +0000 (02:47 +0100)
commited194b14721bc443d4dffb97a648cba938814f67
tree35f1332dd9ce9f0f22f280a2ff2834de2bf65a62
parentdeff31904a7a3724dffb5f87e6c58f2a5f328702
platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_hotkey_notify()

acpi_fujitsu_hotkey_notify() is pretty deeply nested, which hurts
readability.  Strip off one level of indentation by returning early when
the event code supplied as argument is not ACPI_FUJITSU_NOTIFY_CODE1.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/fujitsu-laptop.c