Commit 82b22c88 authored by Jiri Olsa's avatar Jiri Olsa Committed by 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: default avatarJiri Olsa <jolsa@redhat.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent e40152ee
...@@ -19,16 +19,12 @@ ...@@ -19,16 +19,12 @@
static inline int pfn_to_nid(unsigned long pfn) static inline int pfn_to_nid(unsigned long pfn)
{ {
#ifdef CONFIG_NUMA
extern int paddr_to_nid(unsigned long); extern int paddr_to_nid(unsigned long);
int nid = paddr_to_nid(pfn << PAGE_SHIFT); int nid = paddr_to_nid(pfn << PAGE_SHIFT);
if (nid < 0) if (nid < 0)
return 0; return 0;
else else
return nid; return nid;
#else
return 0;
#endif
} }
#ifdef CONFIG_IA64_DIG /* DIG systems are small */ #ifdef CONFIG_IA64_DIG /* DIG systems are small */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment