aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2024-10-15 12:07:46 +0000
committerAndrew Morton <[email protected]>2024-11-06 20:11:14 -0800
commit908378a30b0972e5bf8fae3cf38affc162fe8e3b (patch)
tree6efa4aa933821ca3d576f955bb4ab600d84c5bee /tools/perf/scripts/python/mem-phys-addr.py
parent4223dd93bfc976debededffc0b03cc63d9b73d14 (diff)
maple_tree: simplify mas_push_node()
When count is not 0, we know head is valid. So we can put the assignment in if (count) instead of checking the head pointer again. Also count represents current total, we can assign the new total by increasing the count by one. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Sidhartha Kumar <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions