From: Gonglei Date: Thu, 20 Nov 2014 08:55:54 +0000 (+0800) Subject: pcie: fix improper use of negative value X-Git-Tag: v2.2.0-rc3~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c150fbd341ac10b8559abcfd5915cfff17b70c6;p=thirdparty%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 fbba589aa1a..1abbbb192e7 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"); } }