]> 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)
commitd25b30f4b59909abe9689053966287470370cb34
tree35f1332dd9ce9f0f22f280a2ff2834de2bf65a62
parentf4f68b38ad6d370519066f1f5934fb008c4e8389
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