summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-11-20 16:55:54 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-11-24 20:57:11 +0200
commit6c150fbd341ac10b8559abcfd5915cfff17b70c6 (patch)
tree0943c5505dfa64d8fe0b489343b80ae5d889b987
parent8e815eeefe205155f5561ddd06a29c75819d2ca8 (diff)
downloadqemu-6c150fbd341ac10b8559abcfd5915cfff17b70c6.tar.gz
pcie: fix improper use of negative value
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/pci/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index fbba589aa1..1abbbb192e 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -229,7 +229,7 @@ static void pcie_cap_slot_hotplug_common(PCIDevice *hotplug_dev,
/* the slot is electromechanically locked.
* This error is propagated up to qdev and then to HMP/QMP.
*/
- error_setg_errno(errp, -EBUSY, "slot is electromechanically locked");
+ error_setg_errno(errp, EBUSY, "slot is electromechanically locked");
}
}