提交 1dda59b4 编写于 作者: N Nikitas Angelinas 提交者: Helge Deller

arch/parisc/include/asm: use ARRAY_SIZE macro in mmzone.h

Signed-off-by: NNikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 dc5322e5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册