diff options
author | Gustavo A. R. Silva <silvagustavosilva@gmail.com> | 2017-01-12 05:29:35 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-17 02:28:38 +0300 |
commit | 33237fb8f01e525e2677ca7658bea11545446be8 (patch) | |
tree | 1c95fac375ee1fa3800ec9fc0655f103859f81d5 /drivers/power/supply/pcf50633-charger.c | |
parent | c0d21f73ae44fd85102ec684b58d9e4f9e78d485 (diff) | |
download | linux-33237fb8f01e525e2677ca7658bea11545446be8.tar.xz |
power: supply: ab8500_btemp: 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/pcf50633-charger.c')
0 files changed, 0 insertions, 0 deletions