diff options
| author | Leo Yan <[email protected]> | 2018-09-20 13:18:01 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-25 20:09:18 +0200 |
| commit | b3bee19e93e7fe9df01e0a90cec025781b638ad4 (patch) | |
| tree | e46ea585b51020a293e848a0cf2287e47a64aa01 /tools/perf/scripts/python/bin | |
| parent | b860801e3237ec4c74cf8de0be4816996757ae5c (diff) | |
coresight: tmc: Refactor loops in etb dump
In ETB dump function tmc_etb_dump_hw() it has nested loops. The second
level loop is to iterate index in the range [0 .. drvdata->memwidth);
but the index isn't really used in the code, thus the second level
loop is useless.
This patch is to remove the second level loop; the refactor also reduces
indentation and we can use 'break' to replace 'goto' tag.
Cc: Mathieu Poirier <[email protected]>
Signed-off-by: Leo Yan <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions