diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-01-03 22:38:32 +0000 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-01-04 19:16:12 -0800 |
commit | db9f136a60c8727c8e1c9c4f2494821caebf5a7b (patch) | |
tree | d5311b870e634541e787a680d6d77bf9865f9645 /scripts/recordmcount.pl | |
parent | bfddfb45056fa95a778f0baf463ac0f9fc926d5c (diff) | |
download | linux-db9f136a60c8727c8e1c9c4f2494821caebf5a7b.tar.gz |
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 <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'scripts/recordmcount.pl')
0 files changed, 0 insertions, 0 deletions