]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: hp-wmi: Cleanup exit paths
authorDarren Hart (VMware) <dvhart@infradead.org>
Thu, 20 Apr 2017 01:54:45 +0000 (18:54 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 20 Apr 2017 20:26:18 +0000 (13:26 -0700)
commit527376c89caf59537d8e5c9f14d7caa940bd563b
tree0cd030e22fa95960ba29891483de548f38a7e348
parenta055f9ecb5b4d0cb8b33ba664363a2ed7804a6c7
platform/x86: hp-wmi: Cleanup exit paths

Several exit paths were more complex than they needed to be. Remove
superfluous conditionals, use labels common cleanup, do not shadow
negative error codes.

Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Tested-by: Carlo Caione <carlo@endlessm.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/platform/x86/hp-wmi.c