pcie: fix improper use of negative value
authorGonglei <arei.gonglei@huawei.com>
Thu, 20 Nov 2014 08:55:54 +0000 (16:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Nov 2014 18:57:11 +0000 (20:57 +0200)
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>
hw/pci/pcie.c

index fbba589..1abbbb1 100644 (file)
@@ -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");
     }
 }