Commit 6c150fbd authored by Gonglei's avatar Gonglei Committed by Michael S. Tsirkin
Browse files

pcie: fix improper use of negative value

parent 8e815eee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
    }
}