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

[Xen-changelog] [linux-2.6.18-xen] linux/PCI-MSI: fix compiler warnings resulting from c/s 790



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237457251 0
# Node ID 6a0fee3b8b7da9e2aec96ee6807df5684218d6e4
# Parent  158d62a67d4509a58b6f5940f55392a279a60c11
linux/PCI-MSI: fix compiler warnings resulting from c/s 790

The one in pci_enable_msix() is rather meaningful, as the
uninitialized inner msi_dev_entry was indeed hiding the initialized
outer one.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/pci/msi-xen.c |    4 ----
 1 files changed, 4 deletions(-)

diff -r 158d62a67d45 -r 6a0fee3b8b7d drivers/pci/msi-xen.c
--- a/drivers/pci/msi-xen.c     Thu Mar 19 10:06:52 2009 +0000
+++ b/drivers/pci/msi-xen.c     Thu Mar 19 10:07:31 2009 +0000
@@ -719,7 +719,6 @@ int pci_enable_msix(struct pci_dev* dev,
 
 #ifdef CONFIG_XEN_PCIDEV_FRONTEND
        if (!is_initial_xendomain()) {
-               struct msi_dev_list *msi_dev_entry;
                struct msi_pirq_entry *pirq_entry;
                int ret, irq;
 
@@ -731,7 +730,6 @@ int pci_enable_msix(struct pci_dev* dev,
                }
                msi_dev_entry->default_irq = temp;
 
-               msi_dev_entry = get_msi_dev_pirq_list(dev);
                for (i = 0; i < nvec; i++) {
                        int mapped = 0;
 
@@ -802,8 +800,6 @@ void pci_disable_msix(struct pci_dev* de
 {
        int pos;
        u16 control;
-       struct msi_dev_list *msi_dev_entry = get_msi_dev_pirq_list(dev);
-
 
        if (!pci_msi_enable)
                return;

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