提交 82b22c88 编写于 作者: J Jiri Olsa 提交者: Tony Luck

[IA64] removing redundant ifdef

Pointless to use #ifdef CONFIG_NUMA in code that is
already inside another #ifdef CONFIG_NUMA.
Signed-off-by: NJiri Olsa <jolsa@redhat.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 e40152ee
......@@ -19,16 +19,12 @@
static inline int pfn_to_nid(unsigned long pfn)
{
#ifdef CONFIG_NUMA
extern int paddr_to_nid(unsigned long);
int nid = paddr_to_nid(pfn << PAGE_SHIFT);
if (nid < 0)
return 0;
else
return nid;
#else
return 0;
#endif
}
#ifdef CONFIG_IA64_DIG /* DIG systems are small */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册