summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2019-06-25 04:06:15 +0300
committerStephen Boyd <sboyd@kernel.org>2019-06-25 04:11:41 +0300
commit0b88bc9292515550b4f7b30ac7d7ecd80f5bc1aa (patch)
treec1ff4ae81bedbd4c7a151639f30114b943b057f4 /tools/perf/scripts/python/event_analyzing_sample.py
parent0af69227ed9fc4ac62f8542e52aba98fc2c7945b (diff)
downloadlinux-0b88bc9292515550b4f7b30ac7d7ecd80f5bc1aa.tar.xz
clk: ti: Use int to check return value from of_property_count_elems_of_size()
This function can return a negative number when it fails, but res->sets is at most a u16 which can't hold that negative number. Let's store the result into an int, ret, and then assign that to res->sets when it works to avoid this logical impossibility. Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions