[PATCH 26/44] coresight: tmc: Refactor loops in etb dump

2018-09-20 Thread Mathieu Poirier
From: Leo Yan 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

[PATCH 26/44] coresight: tmc: Refactor loops in etb dump

2018-09-20 Thread Mathieu Poirier
From: Leo Yan 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