diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-11-14 12:00:12 +0300 |
---|---|---|
committer | Jassi Brar <jassisinghbrar@gmail.com> | 2024-11-24 13:08:53 -0600 |
commit | 192a16a3430ca459c4e986f3d10758c4d6b1aa29 (patch) | |
tree | f33d40258877a2595a5e6a5d668a185ff2cb94bc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 98fc87fe2937db5a4948c553f69b5a3cc94c230a (diff) | |
download | linux-stable-192a16a3430ca459c4e986f3d10758c4d6b1aa29.tar.gz linux-stable-192a16a3430ca459c4e986f3d10758c4d6b1aa29.tar.bz2 linux-stable-192a16a3430ca459c4e986f3d10758c4d6b1aa29.zip |
mailbox: arm_mhuv2: clean up loop in get_irq_chan_comb()
Both the inner and outer loops in this code use the "i" iterator.
The inner loop should really use a different iterator.
It doesn't affect things in practice because the data comes from the
device tree. The "protocol" and "windows" variables are going to be
zero. That means we're always going to hit the "return &chans[channel];"
statement and we're not going to want to iterate through the outer
loop again.
Still it's worth fixing this for future use cases.
Fixes: 5a6338cce9f4 ("mailbox: arm_mhuv2: Add driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions