Skip to content

Commit

Permalink
[IA64] removing redundant ifdef
Browse files Browse the repository at this point in the history
Pointless to use #ifdef CONFIG_NUMA in code that is
already inside another #ifdef CONFIG_NUMA.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Jiri Olsa authored and Tony Luck committed May 18, 2010
1 parent e40152e commit 82b22c8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/ia64/include/asm/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 82b22c8

Please sign in to comment.