From: Gonglei Date: Thu, 20 Nov 2014 08:55:54 +0000 (+0800) Subject: pcie: fix improper use of negative value X-Git-Tag: qemu-xen-4.6.0-rc1~52^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6c150fbd341ac10b8559abcfd5915cfff17b70c6;p=qemu-upstream-4.6-testing.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 fbba589aa..1abbbb192 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"); } }