]> git.karo-electronics.de Git - karo-tx-linux.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)
commiteb357cbaf7018342699386e93d292233181e8262
tree35f1332dd9ce9f0f22f280a2ff2834de2bf65a62
parent5c461e8e74a6a67cbd31ce0c9db5f8d0a41dccdd
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