From: Gonglei Date: Thu, 20 Nov 2014 08:55:54 +0000 (+0800) Subject: pcie: fix improper use of negative value X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~209^2~444^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c150fbd341ac10b8559abcfd5915cfff17b70c6;p=sdk%2Femulator%2Fqemu.git pcie: fix improper use of negative value Signed-off-by: Gonglei Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- 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"); } }