Commit 1dda59b4 authored by Nikitas Angelinas's avatar Nikitas Angelinas Committed by Helge Deller

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

Signed-off-by: default avatarNikitas Angelinas <>
Signed-off-by: default avatarHelge Deller <>
parent dc5322e5
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment