static void bufp_free(USBRedirDevice *dev, struct buf_packet *bufp,

    uint8_t ep)

{

    QTAILQ_REMOVE(&dev->endpoint[EP2I(ep)].bufpq, bufp, next);

    dev->endpoint[EP2I(ep)].bufpq_size--;

    free(bufp->data);

    g_free(bufp);

}

static void bufp_free(USBRedirDevice *dev, struct buf_packet *bufp,

    uint8_t ep)

{

    QTAILQ_REMOVE(&dev->endpoint[EP2I(ep)].bufpq, bufp, next);

    dev->endpoint[EP2I(ep)].bufpq_size--;

    free(bufp->data);

    g_free(bufp);

}

    free(bufp->data);
static void FUNC_0(USBRedirDevice *VAR_0, struct buf_packet *VAR_1,

    uint8_t VAR_2)

{

    QTAILQ_REMOVE(&VAR_0->endpoint[EP2I(VAR_2)].bufpq, VAR_1, next);

    VAR_0->endpoint[EP2I(VAR_2)].bufpq_size--;

    free(VAR_1->data);

    g_free(VAR_1);

}

static void FUNC_0(USBRedirDevice *VAR_0, struct buf_packet *VAR_1,
uint8_t VAR_2)
{ QTAILQ_REMOVE(&VAR_0->endpoint[EP2I(VAR_2)].bufpq, VAR_1, next); VAR_0->endpoint[EP2I(VAR_2)].bufpq_size--; free(VAR_1->data); g_free(VAR_1); }