diff options
author | Russell King - ARM Linux <[email protected]> | 2011-01-03 22:38:32 +0000 |
---|---|---|
committer | Dan Williams <[email protected]> | 2011-01-04 19:16:12 -0800 |
commit | db9f136a60c8727c8e1c9c4f2494821caebf5a7b (patch) | |
tree | d5311b870e634541e787a680d6d77bf9865f9645 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | bfddfb45056fa95a778f0baf463ac0f9fc926d5c (diff) |
ARM: PL08x: clean up LLI lookup
As the LLI list is an array, we can use maths to locate which LLI
index we're currently at, and then sum up the remaining LLI entries
until we reach the end of the list.
This makes the code much easier to read, and much less susceptible
to falling off the end of the array.
Signed-off-by: Russell King <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions