]> git.baikalelectronics.ru Git - kernel.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)
commit2c7712d2f4600aaae7999c7955fad1b46a5d1bba
tree0cd030e22fa95960ba29891483de548f38a7e348
parentc5fdb32270ef85568fd3d1e97612179b53676007
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