diff options
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 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 | ||