diff options
author | Gustavo A. R. Silva <silvagustavosilva@gmail.com> | 2017-01-11 20:45:57 -0600 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-17 00:29:16 +0100 |
commit | e448e2d14905d3d45c07fcac5b6d652283ba55b0 (patch) | |
tree | f33cbae402150e8f7d48936b5bcd07a3fc8d9eaf /drivers/power/supply/sbs-battery.c | |
parent | 33237fb8f01e525e2677ca7658bea11545446be8 (diff) | |
download | blackbird-op-linux-e448e2d14905d3d45c07fcac5b6d652283ba55b0.tar.gz blackbird-op-linux-e448e2d14905d3d45c07fcac5b6d652283ba55b0.zip |
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>
Diffstat (limited to 'drivers/power/supply/sbs-battery.c')
0 files changed, 0 insertions, 0 deletions