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

[Xen-devel] [PATCH]x86: Remove unused temporay variable.


  • To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
  • Date: Thu, 15 Oct 2009 10:41:12 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc:
  • Delivery-date: Wed, 14 Oct 2009 19:42:29 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcpNQPWMk3nuoD1vTpaVsJcK95jQhQ==
  • Thread-topic: [PATCH]x86: Remove unused temporay variable.

x86: Remove unused temporay variable. 
 
old_gvec is not used now, so remove it. 
 
Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
 
diff -r 18e80cd73366 xen/drivers/passthrough/io.c
--- a/xen/drivers/passthrough/io.c Fri Oct 09 09:34:03 2009 +0100
+++ b/xen/drivers/passthrough/io.c Thu Oct 15 10:36:41 2009 +0800
@@ -187,7 +187,6 @@ int pt_irq_create_bind_vtd(
         else
         {
             uint32_t mask = HVM_IRQ_DPCI_MACH_MSI | HVM_IRQ_DPCI_GUEST_MSI;
-            uint32_t old_gvec;
 
             if ( (hvm_irq_dpci->mirq[pirq].flags & mask) != mask)
             {
@@ -196,7 +195,6 @@ int pt_irq_create_bind_vtd(
             }
  
             /* if pirq is already mapped as vmsi, update the guest data/addr */
-            old_gvec = hvm_irq_dpci->mirq[pirq].gmsi.gvec;
             hvm_irq_dpci->mirq[pirq].gmsi.gvec = pt_irq_bind->u.msi.gvec;
             hvm_irq_dpci->mirq[pirq].gmsi.gflags = pt_irq_bind->u.msi.gflags;
         }

Attachment: remove-unused-temp-variable.patch
Description: remove-unused-temp-variable.patch

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

 


Rackspace

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