diff options
author | 2016-12-31 19:56:26 -0500 | |
---|---|---|
committer | 2017-02-07 16:56:23 +1100 | |
commit | 97ced1aac07e7b5348a560512b287af69f863917 (patch) | |
tree | c67756da71b430cdad3440439367398a35e08551 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | via-cuda: Use spinlock_irq_save/restore instead of enable/disable_irq (diff) | |
download | wireguard-linux-97ced1aac07e7b5348a560512b287af69f863917.tar.xz wireguard-linux-97ced1aac07e7b5348a560512b287af69f863917.zip |
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 <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions