summaryrefslogtreecommitdiffstats
path: root/firmware/vicam
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-09-04 17:31:34 +0530
committerSebastian Reichel <sre@kernel.org>2014-09-16 11:01:37 +0200
commit73b4a087ba4c0d0d52519769320fa684185c563e (patch)
tree6d691c88248949913297077e71580460c0bc1f90 /firmware/vicam
parent9d2410c79b5b2dd741648de26ad52ffd2ce3dc01 (diff)
downloadop-kernel-dev-73b4a087ba4c0d0d52519769320fa684185c563e.zip
op-kernel-dev-73b4a087ba4c0d0d52519769320fa684185c563e.tar.gz
power-supply: Check for failures only when we can fail
In power_supply_show_property() routine, we call ->get_property() conditionally and should check for failure in that case only. There is no point comparing 'ret' for errors when 'ret' is surely zero. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'firmware/vicam')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud