From: Nathan Fontenot Date: Wed, 24 Apr 2013 05:55:08 +0000 (+0000) Subject: powerpc/pseries: Use ARRAY_SIZE to iterate over firmware_features_table array X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~66^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43c0ea60537d9423f0f1b5c14b0cd0a0b4af5c81;p=pandora-kernel.git powerpc/pseries: Use ARRAY_SIZE to iterate over firmware_features_table array When iterating over the entries in firmware_features_table we only need to go over the actual number of entries in the array instead of declaring it to be bigger and checking to make sure there is a valid entry in every slot. This patch removes the FIRMWARE_MAX_FEATURES #define and replaces the array looping with the use of ARRAY_SIZE(). Signed-off-by: Nathan Fontenot Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed