void qmp_netdev_del(const char *id, Error **errp)

{

    NetClientState *nc;



    nc = qemu_find_netdev(id);

    if (!nc) {

        error_set(errp, QERR_DEVICE_NOT_FOUND, id);

        return;

    }



    qemu_del_net_client(nc);

    qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", errp), id));

}

void qmp_netdev_del(const char *id, Error **errp)

{

    NetClientState *nc;



    nc = qemu_find_netdev(id);

    if (!nc) {

        error_set(errp, QERR_DEVICE_NOT_FOUND, id);

        return;

    }



    qemu_del_net_client(nc);

    qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", errp), id));

}

    qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", errp), id));
void FUNC_0(const char *VAR_0, Error **VAR_1)

{

    NetClientState *nc;



    nc = qemu_find_netdev(VAR_0);

    if (!nc) {

        error_set(VAR_1, QERR_DEVICE_NOT_FOUND, VAR_0);

        return;

    }



    qemu_del_net_client(nc);

    qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", VAR_1), VAR_0));

}

void FUNC_0(const char *VAR_0, Error **VAR_1)
{ NetClientState *nc; nc = qemu_find_netdev(VAR_0); if (!nc) { error_set(VAR_1, QERR_DEVICE_NOT_FOUND, VAR_0); return; } qemu_del_net_client(nc); qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", VAR_1), VAR_0)); }