ia64/linux-2.6.18-xen.hg

changeset 838:6a0fee3b8b7d

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@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 19 10:07:31 2009 +0000 (2009-03-19)
parents 158d62a67d45
children 3d4c92b97556
files drivers/pci/msi-xen.c
line diff
     1.1 --- a/drivers/pci/msi-xen.c	Thu Mar 19 10:06:52 2009 +0000
     1.2 +++ b/drivers/pci/msi-xen.c	Thu Mar 19 10:07:31 2009 +0000
     1.3 @@ -719,7 +719,6 @@ int pci_enable_msix(struct pci_dev* dev,
     1.4  
     1.5  #ifdef CONFIG_XEN_PCIDEV_FRONTEND
     1.6  	if (!is_initial_xendomain()) {
     1.7 -		struct msi_dev_list *msi_dev_entry;
     1.8  		struct msi_pirq_entry *pirq_entry;
     1.9  		int ret, irq;
    1.10  
    1.11 @@ -731,7 +730,6 @@ int pci_enable_msix(struct pci_dev* dev,
    1.12  		}
    1.13  		msi_dev_entry->default_irq = temp;
    1.14  
    1.15 -		msi_dev_entry = get_msi_dev_pirq_list(dev);
    1.16  		for (i = 0; i < nvec; i++) {
    1.17  			int mapped = 0;
    1.18  
    1.19 @@ -802,8 +800,6 @@ void pci_disable_msix(struct pci_dev* de
    1.20  {
    1.21  	int pos;
    1.22  	u16 control;
    1.23 -	struct msi_dev_list *msi_dev_entry = get_msi_dev_pirq_list(dev);
    1.24 -
    1.25  
    1.26  	if (!pci_msi_enable)
    1.27  		return;