platform/x86: fujitsu-laptop: break up complex loop condition
authorMichał Kępień <kernel@kempniu.pl>
Wed, 11 Jan 2017 08:59:32 +0000 (09:59 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:47:18 +0000 (02:47 +0100)
commit29544f03e52b2a6670ae1f1331033feefa216536
treef0964c31d00ca5941cd750b29452fae15670c041
parent2451d19d5d6a4659e5345024efdef3fc5336938a
platform/x86: fujitsu-laptop: break up complex loop condition

The loop condition in acpi_fujitsu_hotkey_release() includes an
assignment, a four-argument function call and a comparison, making it
hard to read.  Separate the assignment from the comparison to improve
readability.

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