aboutsummaryrefslogtreecommitdiff
path: root/hw
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 /hw
parent8e815eeefe205155f5561ddd06a29c75819d2ca8 (diff)
downloadqemu-6c150fbd341ac10b8559abcfd5915cfff17b70c6.zip
qemu-6c150fbd341ac10b8559abcfd5915cfff17b70c6.tar.gz
qemu-6c150fbd341ac10b8559abcfd5915cfff17b70c6.tar.bz2
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>
Diffstat (limited to 'hw')
-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 fbba589..1abbbb1 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");
}
}