aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm
diff options
context:
space:
mode:
authorNikitas Angelinas <nikitasangelinas@gmail.com>2010-09-08 17:11:13 -0400
committerHelge Deller <deller@gmx.de>2013-02-20 16:57:49 -0500
commit1dda59b4f3d03fa28d86f3ea235655f0f96aab3e (patch)
tree87b9bfaed9904213cc38a3de430d72978ccc7038 /arch/parisc/include/asm
parentdc5322e5ae6a4688a998153976b52564916ec976 (diff)
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')
-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)
45 return 0; 45 return 0;
46 46
47 i = pfn >> PFNNID_SHIFT; 47 i = pfn >> PFNNID_SHIFT;
48 BUG_ON(i >= sizeof(pfnnid_map) / sizeof(pfnnid_map[0])); 48 BUG_ON(i >= ARRAY_SIZE(pfnnid_map));
49 r = pfnnid_map[i]; 49 r = pfnnid_map[i];
50 BUG_ON(r == 0xff); 50 BUG_ON(r == 0xff);
51 51