WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: minor cleanup to arch_memory_op()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Jan 2010 00:40:30 -0800
Delivery-date: Wed, 13 Jan 2010 00:41:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: minor cleanup to arch_memory_op(), Xen patchbot-unstable <=