platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_bl_notify()
authorMichał Kępień <kernel@kempniu.pl>
Wed, 1 Mar 2017 06:42:53 +0000 (07:42 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:14 +0000 (22:57 -0700)
commit5efc800463bc340abf6b5e7abd84f7a9522a428d
treefdbde647b0b38fd5e34d687509e623c8219991ed
parent1f3bc53d843f92d6e7e7cf56ee79acec918e6421
platform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_bl_notify()

acpi_fujitsu_bl_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>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Jonathan Woithe <jwoithe@just42.net>
drivers/platform/x86/fujitsu-laptop.c