diff options
| author | Wei Yang <[email protected]> | 2024-09-11 14:27:59 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-05 16:56:24 -0800 |
| commit | 1c148069b240a3a65d1aee90c9d5c6997a747a7d (patch) | |
| tree | cea7f11ce2b8b521646e45889bf1c7420a06d2b0 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 8c7904a8cd0dfb061d078545c2d3c4acce1fcfeb (diff) | |
maple_tree: goto complete directly on a pivot of 0
When we break the loop after assigning a pivot, the index i/j is not
changed. Then the following code assign pivot, which means we do the
assignment with same i/j by mas_safe_pivot.
Since the loop condition is (i < piv_end), from which we can get i is less
than mt_pivots[mt]. It implies mas_safe_pivot() return pivot[i] which is
the same value we get in loop.
Now we can conclude it does a redundant assignment on a pivot of 0. Let's
just go to complete to avoid it.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions