Message ID | 20180716172712.20294-13-julien.grall@arm.com |
---|---|
State | New |
Headers | show |
Series | xen/arm: Bunch of clean-up/improvement | expand |
On Mon, 16 Jul 2018, Julien Grall wrote: > Comestic change to make clearer what is the return ('ret' is a bit > too generic). > > Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Stefano Stabellini <sstabellini@kernel.org> > --- > xen/arch/arm/p2m.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c > index 07925a1be4..66d58fabd7 100644 > --- a/xen/arch/arm/p2m.c > +++ b/xen/arch/arm/p2m.c > @@ -383,14 +383,14 @@ out: > > mfn_t p2m_lookup(struct domain *d, gfn_t gfn, p2m_type_t *t) > { > - mfn_t ret; > + mfn_t mfn; > struct p2m_domain *p2m = p2m_get_hostp2m(d); > > p2m_read_lock(p2m); > - ret = p2m_get_entry(p2m, gfn, t, NULL, NULL); > + mfn = p2m_get_entry(p2m, gfn, t, NULL, NULL); > p2m_read_unlock(p2m); > > - return ret; > + return mfn; > } > > int guest_physmap_mark_populate_on_demand(struct domain *d, > -- > 2.11.0 >
diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 07925a1be4..66d58fabd7 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -383,14 +383,14 @@ out: mfn_t p2m_lookup(struct domain *d, gfn_t gfn, p2m_type_t *t) { - mfn_t ret; + mfn_t mfn; struct p2m_domain *p2m = p2m_get_hostp2m(d); p2m_read_lock(p2m); - ret = p2m_get_entry(p2m, gfn, t, NULL, NULL); + mfn = p2m_get_entry(p2m, gfn, t, NULL, NULL); p2m_read_unlock(p2m); - return ret; + return mfn; } int guest_physmap_mark_populate_on_demand(struct domain *d,
Comestic change to make clearer what is the return ('ret' is a bit too generic). Signed-off-by: Julien Grall <julien.grall@linaro.org> --- xen/arch/arm/p2m.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)