summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/mmzone.h
diff options
context:
space:
mode:
authorNikitas Angelinas <nikitasangelinas@gmail.com>2010-09-09 01:11:13 +0400
committerHelge Deller <deller@gmx.de>2013-02-21 01:57:49 +0400
commit1dda59b4f3d03fa28d86f3ea235655f0f96aab3e (patch)
tree87b9bfaed9904213cc38a3de430d72978ccc7038 /arch/parisc/include/asm/mmzone.h
parentdc5322e5ae6a4688a998153976b52564916ec976 (diff)
downloadlinux-1dda59b4f3d03fa28d86f3ea235655f0f96aab3e.tar.xz
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>
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 31835b998a5a..0e625ab9aaec 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);