git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585b008
)
power-supply: Drop useless 'if (ret.intval)' statements
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:31 +0000
(17:31 +0530)
committer
Sebastian Reichel
<sre@kernel.org>
Tue, 16 Sep 2014 09:01:34 +0000
(11:01 +0200)
There is no need to check the value of ret.intval before returning it, as we
will be returning zero explicitly when ret.intval is zero.
So essentially we will end up returning value of ret.intval as it is. Drop the
unnecessary 'if' statements.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/power_supply_core.c
patch
|
blob
|
history
diff --cc
drivers/power/power_supply_core.c
Simple merge