[POWERPC] PPC: Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Kumar Gala <galak@gate.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
3839a59439
commit
2366fb16ab
@@ -77,7 +77,7 @@ static struct mtd_partition mpc8xxads_partitions[] = {
|
||||
}
|
||||
};
|
||||
|
||||
#define mpc8xxads_part_num (sizeof (mpc8xxads_partitions) / sizeof (mpc8xxads_partitions[0]))
|
||||
#define mpc8xxads_part_num ARRAY_SIZE(mpc8xxads_partitions)
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user