]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_device
authorPraveen Kalamegham <praveen@nextio.com>
Thu, 20 May 2010 20:32:22 +0000 (15:32 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:29:15 +0000 (09:29 -0700)
pciehp_unconfigure_device() should return -EINVAL, not EINVAL.

Signed-off-by: Praveen Kalamegham <praveen@nextio.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_pci.c

index 2fce726758d2f1bc0c5d24dff8ca3690707c4a56..a4031dfe938ecd037227896fac3fabe5ca24e56b 100644 (file)
@@ -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;
                        }
                }