From: Praveen Kalamegham Date: Thu, 20 May 2010 20:32:22 +0000 (-0500) Subject: PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device X-Git-Tag: v2.6.36-rc1~518^2~18 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=01b666df487b80c956cef3ce3253776ddeebd41e;p=~emulex%2Finfiniband.git PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device pciehp_unconfigure_device() should return -EINVAL, not EINVAL. Signed-off-by: Praveen Kalamegham Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 2fce726758d..a4031dfe938 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c @@ -137,7 +137,7 @@ int pciehp_unconfigure_device(struct slot *p_slot) "Cannot remove display device %s\n", pci_name(temp)); pci_dev_put(temp); - rc = EINVAL; + rc = -EINVAL; break; } }