arch/parisc/include/asm: use ARRAY_SIZE macro in mmzone.h

Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Nikitas Angelinas 2010-09-08 21:11:13 +00:00 committed by Helge Deller
parent dc5322e5ae
commit 1dda59b4f3

View File

@ -45,7 +45,7 @@ static inline int pfn_to_nid(unsigned long pfn)
return 0;
i = pfn >> PFNNID_SHIFT;
BUG_ON(i >= sizeof(pfnnid_map) / sizeof(pfnnid_map[0]));
BUG_ON(i >= ARRAY_SIZE(pfnnid_map));
r = pfnnid_map[i];
BUG_ON(r == 0xff);