[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: minor cleanup to arch_memory_op()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263370620 0
# Node ID 3f8fd65732cc7c2324c905fe055e522077672d82
# Parent  4573383ec3dd66d500ab9e6125069ce908806696
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 <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    3 ---
 1 files changed, 3 deletions(-)

diff -r 4573383ec3dd -r 3f8fd65732cc xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Wed Jan 13 08:16:37 2010 +0000
+++ b/xen/arch/x86/mm.c Wed Jan 13 08:17:00 2010 +0000
@@ -4235,7 +4235,6 @@ long arch_memory_op(int op, XEN_GUEST_HA
         struct 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;
@@ -4347,7 +4346,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;
@@ -4399,7 +4397,6 @@ long arch_memory_op(int op, XEN_GUEST_HA
         struct memory_map_context ctxt;
         XEN_GUEST_HANDLE(e820entry_t) buffer;
         unsigned int i;
-        int rc;
 
         if ( !IS_PRIV(current->domain) )
             return -EINVAL;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.