commit | 73b4a087ba4c0d0d52519769320fa684185c563e | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Thu Sep 04 17:31:34 2014 +0530 |
committer | Sebastian Reichel <sre@kernel.org> | Tue Sep 16 11:01:37 2014 +0200 |
tree | 6d691c88248949913297077e71580460c0bc1f90 | |
parent | 9d2410c79b5b2dd741648de26ad52ffd2ce3dc01 [diff] |
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>