static void ehci_free_packet(EHCIPacket *p)

{

    trace_usb_ehci_packet_action(p->queue, p, "free");

    if (p->async == EHCI_ASYNC_INFLIGHT) {

        usb_cancel_packet(&p->packet);

        usb_packet_unmap(&p->packet, &p->sgl);

        qemu_sglist_destroy(&p->sgl);












    QTAILQ_REMOVE(&p->queue->packets, p, next);

    usb_packet_cleanup(&p->packet);

    g_free(p);

static void ehci_free_packet(EHCIPacket *p)

{

    trace_usb_ehci_packet_action(p->queue, p, "free");

    if (p->async == EHCI_ASYNC_INFLIGHT) {

        usb_cancel_packet(&p->packet);

        usb_packet_unmap(&p->packet, &p->sgl);

        qemu_sglist_destroy(&p->sgl);












    QTAILQ_REMOVE(&p->queue->packets, p, next);

    usb_packet_cleanup(&p->packet);

    g_free(p);

static void FUNC_0(EHCIPacket *VAR_0)

{

    trace_usb_ehci_packet_action(VAR_0->queue, VAR_0, "free");

    if (VAR_0->async == EHCI_ASYNC_INFLIGHT) {

        usb_cancel_packet(&VAR_0->packet);

        usb_packet_unmap(&VAR_0->packet, &VAR_0->sgl);

        qemu_sglist_destroy(&VAR_0->sgl);












    QTAILQ_REMOVE(&VAR_0->queue->packets, VAR_0, next);

    usb_packet_cleanup(&VAR_0->packet);

    g_free(VAR_0);

static void FUNC_0(EHCIPacket *VAR_0)
{ trace_usb_ehci_packet_action(VAR_0->queue, VAR_0, "free"); if (VAR_0->async == EHCI_ASYNC_INFLIGHT) { usb_cancel_packet(&VAR_0->packet); usb_packet_unmap(&VAR_0->packet, &VAR_0->sgl); qemu_sglist_destroy(&VAR_0->sgl); QTAILQ_REMOVE(&VAR_0->queue->packets, VAR_0, next); usb_packet_cleanup(&VAR_0->packet); g_free(VAR_0);