x86: minor cleanup to arch_memory_op()
PATCH 1/1 x86: minor cleanup to arch_memory_op()
There's a function-wide variable rc, so no need to re-declare it in individual case handling blocks.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/mm.c +0 -3
@@ -4237,7 +4237,6 @@ long arch_memory_op(int op, XEN_GUEST_HAstruct xen_add_to_physmap xatp;unsigned long prev_mfn, mfn =0 , gpfn;struct domain *d; -int rc;if (copy_from_guest (&xatp, arg,1 ) )return -EFAULT ;
@@ -4349,7 +4348,6 @@ long arch_memory_op(int op, XEN_GUEST_HA {struct xen_foreign_memory_map fmap;struct domain *d; -int rc;if (copy_from_guest (&fmap, arg,1 ) )return -EFAULT ;
@@ -4401,7 +4399,6 @@ long arch_memory_op(int op, XEN_GUEST_HAstruct memory_map_context ctxt;XEN_GUEST_HANDLE (e820entry_t) buffer;unsigned int i; -int rc;if ( !IS_PRIV (current->domain) )return -EINVAL ;
There's a function-wide variable rc, so no need to re-declare it in individual case handling blocks.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/mm.c +0 -3
@@ -4237,7 +4237,6 @@ long arch_memory_op(int op, XEN_GUEST_HAstruct xen_add_to_physmap xatp;unsigned long prev_mfn, mfn =0 , gpfn;struct domain *d; -int rc;if (copy_from_guest (&xatp, arg,1 ) )return -EFAULT ;
@@ -4349,7 +4348,6 @@ long arch_memory_op(int op, XEN_GUEST_HA {struct xen_foreign_memory_map fmap;struct domain *d; -int rc;if (copy_from_guest (&fmap, arg,1 ) )return -EFAULT ;
@@ -4401,7 +4399,6 @@ long arch_memory_op(int op, XEN_GUEST_HAstruct memory_map_context ctxt;XEN_GUEST_HANDLE (e820entry_t) buffer;unsigned int i; -int rc;if ( !IS_PRIV (current->domain) )return -EINVAL ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel