From: Jean Delvare Date: Wed, 31 Aug 2011 15:53:41 +0000 (-0400) Subject: hwmon: (ucd9000/ucd9200) Optimize array walk X-Git-Tag: v3.1-rc6~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f020b007d5dd24597f5e985a6309bcb8393797ed;p=pandora-kernel.git hwmon: (ucd9000/ucd9200) Optimize array walk Rewrite the loop walking the id array during probe. The new code is better adapted to a null-terminated array, and is also clearer and more efficient than the original. Signed-off-by: Jean Delvare Cc: Axel Lin Cc: Guenter Roeck Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed