From: Russell King - ARM Linux Date: Mon, 3 Jan 2011 22:38:32 +0000 (+0000) Subject: ARM: PL08x: clean up LLI lookup X-Git-Tag: v2.6.38-rc1~25^2~11^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9f136a60c8727c8e1c9c4f2494821caebf5a7b;p=pandora-kernel.git 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 Acked-by: Linus Walleij Signed-off-by: Dan Williams --- Reading git-diff-tree failed