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

[Xen-changelog] [xen-unstable] [HVM][VMX] Get rid of unused 'error' local variable.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 3fc216fbef580a51e8c17eb5945e29f9ced15c33
# Parent  aeb484dafc5bf50fb5d5881d014d6b90dc349af3
[HVM][VMX] Get rid of unused 'error' local variable.
Signed-off-by: Steven Smith <ssmith@xxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/vmx.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -r aeb484dafc5b -r 3fc216fbef58 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Thu Aug 03 13:55:41 2006 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Thu Aug 03 14:01:09 2006 +0100
@@ -2184,11 +2184,10 @@ asmlinkage void vmx_vmexit_handler(struc
          * (1) We can get an exception (e.g. #PG) in the guest, or
          * (2) NMI
          */
-        int error;
         unsigned int vector;
         unsigned long va;
 
-        if ((error = __vmread(VM_EXIT_INTR_INFO, &vector))
+        if (__vmread(VM_EXIT_INTR_INFO, &vector)
             || !(vector & INTR_INFO_VALID_MASK))
             __hvm_bug(&regs);
         vector &= INTR_INFO_VECTOR_MASK;
@@ -2261,7 +2260,7 @@ asmlinkage void vmx_vmexit_handler(struc
                         (unsigned long)regs.ecx, (unsigned long)regs.edx,
                         (unsigned long)regs.esi, (unsigned long)regs.edi);
 
-            if (!(error = vmx_do_page_fault(va, &regs))) {
+            if (!vmx_do_page_fault(va, &regs)) {
                 /*
                  * Inject #PG using Interruption-Information Fields
                  */

_______________________________________________
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®.