power: supply: pcf50633-charger: Compress return logic into one line.
authorGustavo A. R. Silva <silvagustavosilva@gmail.com>
Thu, 12 Jan 2017 02:45:57 +0000 (20:45 -0600)
committerSebastian Reichel <sre@kernel.org>
Mon, 16 Jan 2017 23:29:16 +0000 (00:29 +0100)
commite448e2d14905d3d45c07fcac5b6d652283ba55b0
treef33cbae402150e8f7d48936b5bcd07a3fc8d9eaf
parent33237fb8f01e525e2677ca7658bea11545446be8
power: supply: pcf50633-charger: Compress return logic into one line.

Simplify return logic to avoid unnecessary variable assignments.
These issues were detected using Coccinelle and the following semantic patch:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/pcf50633-charger.c