aboutsummaryrefslogtreecommitdiffstats
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)
46 return mfn; 46 return mfn;
47 } 47 }
48 48
49 if (xen_initial_domain()) 49 return pfn;
50 return pfn;
51 else
52 return INVALID_P2M_ENTRY;
53} 50}
54 51
55static inline unsigned long mfn_to_pfn(unsigned long mfn) 52static inline unsigned long mfn_to_pfn(unsigned long mfn)
@@ -62,10 +59,7 @@ static inline unsigned long mfn_to_pfn(unsigned long mfn)
62 return pfn; 59 return pfn;
63 } 60 }
64 61
65 if (xen_initial_domain()) 62 return mfn;
66 return mfn;
67 else
68 return INVALID_P2M_ENTRY;
69} 63}
70 64
71#define mfn_to_local_pfn(mfn) mfn_to_pfn(mfn) 65#define mfn_to_local_pfn(mfn) mfn_to_pfn(mfn)