Skip to content

Commit

Permalink
PCI hotplug: pciehp: Fixed return value sign for pciehp_unconfigure_d…
Browse files Browse the repository at this point in the history
…evice

pciehp_unconfigure_device() should return -EINVAL, not EINVAL.

Signed-off-by: Praveen Kalamegham <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
  • Loading branch information
Praveen Kalamegham authored and jbarnes993 committed Jul 30, 2010
1 parent 41cd766 commit 01b666d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/pciehp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 01b666d

Please sign in to comment.