Zhang, Xiantao
2009-Oct-15 02:41 UTC
[Xen-devel] [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@intel.com> 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; } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel