diff options
| author | Leo Yan <leo.yan@linaro.org> | 2018-09-20 13:18:01 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-25 20:09:18 +0200 |
| commit | b3bee19e93e7fe9df01e0a90cec025781b638ad4 (patch) | |
| tree | e46ea585b51020a293e848a0cf2287e47a64aa01 /tools/perf/scripts/python/bin | |
| parent | coresight: etm4x: Configure EL2 exception level when kernel is running in HYP (diff) | |
| download | linux-b3bee19e93e7fe9df01e0a90cec025781b638ad4.tar.gz linux-b3bee19e93e7fe9df01e0a90cec025781b638ad4.zip | |
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 <mathieu.poirier@linaro.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
