forked from luck/tmp_suning_uos_patched
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:
parent
dc5322e5ae
commit
1dda59b4f3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user