linux/PCI-MSI: fix compiler warnings resulting from c/s 790
PATCH 1/1 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.
As usual, written and tested on 2.6.29-rc8 and made apply to the 2.6.18 tree without further testing.
Signed-off-by Jan Beulich <[email protected]>
drivers/pci/msi-xen.c +0 -4
@@ -612,7 +612,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;
@@ -625,7 +624,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 ;
@@ -688,8 +686,6 @@ void pci_disable_msix(struct pci_dev* dev {int pos;u16 control; -struct msi_dev_list *msi_dev_entry =get_msi_dev_pirq_list (dev); -if (!pci_msi_enable)return ;