diff mbox

[2/2] PCI: remove redundant __msi_set_enable()

Message ID 4A374942.1000903@jp.fujitsu.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Kenji Kaneshige June 16, 2009, 7:26 a.m. UTC
Remove __msi_set_enable() because it's used only by msi_set_enable().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>

---
 drivers/pci/msi.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: 20090612/drivers/pci/msi.c
===================================================================
--- 20090612.orig/drivers/pci/msi.c
+++ 20090612/drivers/pci/msi.c
@@ -75,10 +75,12 @@  void arch_teardown_msi_irqs(struct pci_d
 }
 #endif
 
-static void __msi_set_enable(struct pci_dev *dev, int pos, int enable)
+static void msi_set_enable(struct pci_dev *dev, int enable)
 {
+	int pos;
 	u16 control;
 
+	pos = pci_find_capability(dev, PCI_CAP_ID_MSI);
 	if (pos) {
 		pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control);
 		control &= ~PCI_MSI_FLAGS_ENABLE;
@@ -88,11 +90,6 @@  static void __msi_set_enable(struct pci_
 	}
 }
 
-static void msi_set_enable(struct pci_dev *dev, int enable)
-{
-	__msi_set_enable(dev, pci_find_capability(dev, PCI_CAP_ID_MSI), enable);
-}
-
 static void msix_set_enable(struct pci_dev *dev, int enable)
 {
 	int pos;