aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.vnet.ibm.com>2016-10-13 13:45:30 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2017-01-30 16:49:30 +1100
commit7656cd8e8e23ac4b059f4d96939cb73eb3121ae9 (patch)
tree233ee8de4b8a662aada9907f43ca58300ec298df /tools/perf/scripts/python/export-to-postgresql.py
parentpowerpc/fadump: Fix the race in crash_fadump(). (diff)
downloadlinux-rng-7656cd8e8e23ac4b059f4d96939cb73eb3121ae9.tar.xz
linux-rng-7656cd8e8e23ac4b059f4d96939cb73eb3121ae9.zip
powerpc/mm: Simplify loop control in parse_numa_properties()
The flow of the main loop in parse_numa_properties() is overly complicated. Simplify it to be less confusing and easier to read. No functional change. The end of the main loop in parse_numa_properties() looks like this: for_each_node_by_type(...) { ... if (!condition) { if (--ranges) goto new_range; else continue; } statement(); if (--ranges) goto new_range; /* else * continue; <- implicit, this is the end of the loop */ } The only effect of !condition is to skip execution of statement(). This can be rewritten in a simpler way: for_each_node_by_type(...) { ... if (condition) statement(); if (--ranges) goto new_range; } Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions