aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/include/asm/mmzone.h')
-rw-r--r--arch/parisc/include/asm/mmzone.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/mmzone.h b/arch/parisc/include/asm/mmzone.h
index 31835b998a5..0e625ab9aae 100644
--- a/arch/parisc/include/asm/mmzone.h
+++ b/arch/parisc/include/asm/mmzone.h
@@ -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);