diff options
author | Nikitas Angelinas <nikitasangelinas@gmail.com> | 2010-09-08 21:11:13 +0000 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-02-20 22:57:49 +0100 |
commit | 1dda59b4f3d03fa28d86f3ea235655f0f96aab3e (patch) | |
tree | 87b9bfaed9904213cc38a3de430d72978ccc7038 /arch/parisc | |
parent | dc5322e5ae6a4688a998153976b52564916ec976 (diff) | |
download | linux-3.10-1dda59b4f3d03fa28d86f3ea235655f0f96aab3e.tar.gz linux-3.10-1dda59b4f3d03fa28d86f3ea235655f0f96aab3e.tar.bz2 linux-3.10-1dda59b4f3d03fa28d86f3ea235655f0f96aab3e.zip |
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')
-rw-r--r-- | arch/parisc/include/asm/mmzone.h | 2 |
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); |