aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorShmulik Ladkani <[email protected]>2012-09-23 09:52:29 +0200
committerArtem Bityutskiy <[email protected]>2012-11-15 15:37:45 +0200
commit438db5a92b7526a12591f764042528a86d2ebb4b (patch)
tree22dfe6e013b16e8d732e6663faf7514d8377a295 /tools/perf/scripts/python/event_analyzing_sample.py
parent6924d99fcdf1a688538a3cdebd1f135c22eec191 (diff)
mtd: cmdlinepart: Simplify parse_cmdline_partitions
Simply 'parse_cmdline_partitions': the outer loop iterating over 'partitions' is actually a search loop, it does not execute the inner loop for each partition, only for the matched partition. Let's break when search is successful, and move all inner code (relevant only for the matched partition) outside of the outer loop. Resulting code is much more readable, and makes the indent level sane. Signed-off-by: Shmulik Ladkani <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions