Patchwork [4/9] PCI/MSI/MIPS: Make return values only 0/-errno when MSIs allocated

login
register
mail settings
Submitter Alexander Gordeev
Date Sept. 9, 2013, 3:24 p.m.
Message ID <20130909152454.GE24962@dhcp-26-207.brq.redhat.com>
Download mbox | patch
Permalink /patch/273593/
State Changes Requested
Headers show

Comments

Alexander Gordeev - Sept. 9, 2013, 3:24 p.m.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
---
 arch/mips/pci/msi-octeon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c
index d37be36..0ee5f4d 100644
--- a/arch/mips/pci/msi-octeon.c
+++ b/arch/mips/pci/msi-octeon.c
@@ -193,7 +193,7 @@  int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
 	 * override arch_setup_msi_irqs()
 	 */
 	if (type == PCI_CAP_ID_MSI && nvec > 1)
-		return 1;
+		return -EINVAL;
 
 	list_for_each_entry(entry, &dev->msi_list, list) {
 		ret = arch_setup_msi_irq(dev, entry);