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

[Xen-changelog] [xen-unstable] x86/HVM: remove dead code


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 11 Dec 2012 04:33:14 +0000
  • Delivery-date: Tue, 11 Dec 2012 04:34:32 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1354799631 -3600
# Node ID 8f7bb944bcb6f736db8a9562e904628ec4629f67
# Parent  42b22e498d0e7e1345966c018bd18a83c067aa4b
x86/HVM: remove dead code

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 42b22e498d0e -r 8f7bb944bcb6 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Thu Dec 06 14:13:10 2012 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Thu Dec 06 14:13:51 2012 +0100
@@ -2460,9 +2460,7 @@ static enum hvm_copy_result __hvm_copy(
             return HVMCOPY_unhandleable;
         }
         if ( !page )
-        {
             return HVMCOPY_bad_gfn_to_mfn;
-        }
 
         p = (char *)__map_domain_page(page) + (addr & ~PAGE_MASK);
 
@@ -2560,11 +2558,7 @@ static enum hvm_copy_result __hvm_clear(
             return HVMCOPY_unhandleable;
         }
         if ( !page )
-        {
-            if ( page )
-                put_page(page);
             return HVMCOPY_bad_gfn_to_mfn;
-        }
 
         p = (char *)__map_domain_page(page) + (addr & ~PAGE_MASK);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.