aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFinn Thain <[email protected]>2016-12-31 19:56:26 -0500
committerMichael Ellerman <[email protected]>2017-02-07 16:56:23 +1100
commit97ced1aac07e7b5348a560512b287af69f863917 (patch)
treec67756da71b430cdad3440439367398a35e08551 /tools/perf/scripts/python
parentac39452e942af6a212e8f89e8a36b71354323845 (diff)
via-cuda: Initialize data_index early and increment consistently
Initialize data_index where appropriate to improve readability and assist debugging. This change doesn't affect driver behaviour. I prefer to see current_req->data[data_index++] in place of current_req->data[0] or current_req->data[1] inasmuchas it becomes obvious what the data_index variable does. Moreover, the actual value of data_index when examined at any given moment tells me something about prior events, which did prove helpful. Tested-by: Stan Johnson <[email protected]> Signed-off-by: Finn Thain <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions