aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-09-04 17:31:31 +0530
committerSebastian Reichel <sre@kernel.org>2014-09-16 11:01:34 +0200
commit1c42a389eaa0fddca6e6d9625e65ff62c9b90e80 (patch)
tree107f235beb7018420d2f6e4ff871991a042535ca /tools/perf/scripts/python
parentpower-supply: Don't return -EINVAL from __power_supply_find_supply_from_node() (diff)
downloadlinux-1c42a389eaa0fddca6e6d9625e65ff62c9b90e80.tar.gz
linux-1c42a389eaa0fddca6e6d9625e65ff62c9b90e80.zip
power-supply: Drop useless 'if (ret.intval)' statements
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions