void drive_uninit(BlockDriverState *bdrv)

{

    DriveInfo *dinfo;



    TAILQ_FOREACH(dinfo, &drives, next) {

        if (dinfo->bdrv != bdrv)

            continue;

        qemu_opts_del(dinfo->opts);

        TAILQ_REMOVE(&drives, dinfo, next);

        qemu_free(dinfo);

        break;

    }

}

void drive_uninit(BlockDriverState *bdrv)

{

    DriveInfo *dinfo;



    TAILQ_FOREACH(dinfo, &drives, next) {

        if (dinfo->bdrv != bdrv)

            continue;

        qemu_opts_del(dinfo->opts);

        TAILQ_REMOVE(&drives, dinfo, next);

        qemu_free(dinfo);

        break;

    }

}

void FUNC_0(BlockDriverState *VAR_0)

{

    DriveInfo *dinfo;



    TAILQ_FOREACH(dinfo, &drives, next) {

        if (dinfo->VAR_0 != VAR_0)

            continue;

        qemu_opts_del(dinfo->opts);

        TAILQ_REMOVE(&drives, dinfo, next);

        qemu_free(dinfo);

        break;

    }

}

void FUNC_0(BlockDriverState *VAR_0)
{ DriveInfo *dinfo; TAILQ_FOREACH(dinfo, &drives, next) { if (dinfo->VAR_0 != VAR_0)
continue; qemu_opts_del(dinfo->opts); TAILQ_REMOVE(&drives, dinfo, next); qemu_free(dinfo); break; } }