eeepc-laptop: flatten control flow
authorFrans Klaver <fransklaver@gmail.com>
Wed, 22 Oct 2014 19:12:36 +0000 (21:12 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 19 Nov 2014 17:07:07 +0000 (09:07 -0800)
commit248d490363906806e0a2ac8417a8bb3f3f8a012c
treea7f030c7adbdfc6bf95bb8b6a5da86f42ffa63a8
parent98280374ff1750acfa582a4575b94f053a29f749
eeepc-laptop: flatten control flow

In eeepc_rfkill_hotplug there's an if statement with a big tail that
ends right before the out_unlock label. We might as well invert the
condition and jump to out_unlock in that case, pretty much like the rest
of the code does. This removes an indentation level for a large chunk of
code and also stops suggesting there might be an else clause.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/eeepc-laptop.c