summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/xen/page.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h
index 71bb779f2761..75579a9d6f76 100644
--- a/arch/arm/include/asm/xen/page.h
+++ b/arch/arm/include/asm/xen/page.h
@@ -46,10 +46,7 @@ static inline unsigned long pfn_to_mfn(unsigned long pfn)
return mfn;
}
- if (xen_initial_domain())
- return pfn;
- else
- return INVALID_P2M_ENTRY;
+ return pfn;
}
static inline unsigned long mfn_to_pfn(unsigned long mfn)
@@ -62,10 +59,7 @@ static inline unsigned long mfn_to_pfn(unsigned long mfn)
return pfn;
}
- if (xen_initial_domain())
- return mfn;
- else
- return INVALID_P2M_ENTRY;
+ return mfn;
}
#define mfn_to_local_pfn(mfn) mfn_to_pfn(mfn)