void qemu_del_vlan_client(VLANClientState *vc)

{

    if (vc->vlan) {

        QTAILQ_REMOVE(&vc->vlan->clients, vc, next);

    } else {

        if (vc->send_queue) {

            qemu_del_net_queue(vc->send_queue);

        }

        QTAILQ_REMOVE(&non_vlan_clients, vc, next);

        if (vc->peer) {

            vc->peer->peer = NULL;

        }

    }



    if (vc->info->cleanup) {

        vc->info->cleanup(vc);

    }



    qemu_free(vc->name);

    qemu_free(vc->model);

    qemu_free(vc);

}

void qemu_del_vlan_client(VLANClientState *vc)

{

    if (vc->vlan) {

        QTAILQ_REMOVE(&vc->vlan->clients, vc, next);

    } else {

        if (vc->send_queue) {

            qemu_del_net_queue(vc->send_queue);

        }

        QTAILQ_REMOVE(&non_vlan_clients, vc, next);

        if (vc->peer) {

            vc->peer->peer = NULL;

        }

    }



    if (vc->info->cleanup) {

        vc->info->cleanup(vc);

    }



    qemu_free(vc->name);

    qemu_free(vc->model);

    qemu_free(vc);

}

void qemu_del_vlan_client(VLANClientState *vc)         if (vc->send_queue) {             qemu_del_net_queue(vc->send_queue);         if (vc->peer) {             vc->peer->peer = NULL;
void FUNC_0(VLANClientState *VAR_0)

{

    if (VAR_0->vlan) {

        QTAILQ_REMOVE(&VAR_0->vlan->clients, VAR_0, next);

    } else {

        if (VAR_0->send_queue) {

            qemu_del_net_queue(VAR_0->send_queue);

        }

        QTAILQ_REMOVE(&non_vlan_clients, VAR_0, next);

        if (VAR_0->peer) {

            VAR_0->peer->peer = NULL;

        }

    }



    if (VAR_0->info->cleanup) {

        VAR_0->info->cleanup(VAR_0);

    }



    qemu_free(VAR_0->name);

    qemu_free(VAR_0->model);

    qemu_free(VAR_0);

}

void FUNC_0(VLANClientState *VAR_0)
{ if (VAR_0->vlan) { QTAILQ_REMOVE(&VAR_0->vlan->clients, VAR_0, next); } else { if (VAR_0->send_queue) { qemu_del_net_queue(VAR_0->send_queue); } QTAILQ_REMOVE(&non_vlan_clients, VAR_0, next); if (VAR_0->peer) { VAR_0->peer->peer = NULL; } } if (VAR_0->info->cleanup) { VAR_0->info->cleanup(VAR_0); } qemu_free(VAR_0->name); qemu_free(VAR_0->model); qemu_free(VAR_0); }