]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eeepc-laptop: clean up control flow in *_rfkill_notifier
authorFrans Klaver <fransklaver@gmail.com>
Sat, 20 Sep 2014 22:22:17 +0000 (00:22 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Mon, 22 Sep 2014 21:17:54 +0000 (14:17 -0700)
commit557b4549714536b161522960a36f0aa7f527418c
treef7d422c9c140ead9fa75746dbd3f19ae3c92e669
parentd48690383febbf17d958e909ff8f0d15f4497325
eeepc-laptop: clean up control flow in *_rfkill_notifier

Handle errors immediately in eeepc_register_rfkill_notifier and
eeepc_unregister_rfkill_notifier. This clears up the control flow for the
reader. It also removes unnecessary indentation.

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