static void nvme_set_bootindex(Object *obj, Visitor *v, void *opaque,

                                  const char *name, Error **errp)

{

    NvmeCtrl *s = NVME(obj);

    int32_t boot_index;

    Error *local_err = NULL;



    visit_type_int32(v, &boot_index, name, &local_err);

    if (local_err) {

        goto out;

    }

    /* check whether bootindex is present in fw_boot_order list  */

    check_boot_index(boot_index, &local_err);

    if (local_err) {

        goto out;

    }

    /* change bootindex to a new one */

    s->conf.bootindex = boot_index;



out:

    if (local_err) {

        error_propagate(errp, local_err);

    }

}

static void nvme_set_bootindex(Object *obj, Visitor *v, void *opaque,

                                  const char *name, Error **errp)

{

    NvmeCtrl *s = NVME(obj);

    int32_t boot_index;

    Error *local_err = NULL;



    visit_type_int32(v, &boot_index, name, &local_err);

    if (local_err) {

        goto out;

    }

    

    check_boot_index(boot_index, &local_err);

    if (local_err) {

        goto out;

    }

    

    s->conf.bootindex = boot_index;



out:

    if (local_err) {

        error_propagate(errp, local_err);

    }

}

                                  const char *name, Error **errp)     NvmeCtrl *s = NVME(obj); static void nvme_set_bootindex(Object *obj, Visitor *v, void *opaque,                                   const char *name, Error **errp)     int32_t boot_index;     Error *local_err = NULL;     visit_type_int32(v, &boot_index, name, &local_err);     if (local_err) {         goto out;     check_boot_index(boot_index, &local_err);     if (local_err) {         goto out;     s->conf.bootindex = boot_index; out:     if (local_err) {         error_propagate(errp, local_err);
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,

                                  const char *VAR_3, Error **VAR_4)

{

    NvmeCtrl *s = NVME(VAR_0);

    int32_t boot_index;

    Error *local_err = NULL;



    visit_type_int32(VAR_1, &boot_index, VAR_3, &local_err);

    if (local_err) {

        goto out;

    }

    

    check_boot_index(boot_index, &local_err);

    if (local_err) {

        goto out;

    }

    

    s->conf.bootindex = boot_index;



out:

    if (local_err) {

        error_propagate(VAR_4, local_err);

    }

}

static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,
const char *VAR_3, Error **VAR_4)
{ NvmeCtrl *s = NVME(VAR_0); int32_t boot_index; Error *local_err = NULL; visit_type_int32(VAR_1, &boot_index, VAR_3, &local_err); if (local_err) { goto out; } check_boot_index(boot_index, &local_err); if (local_err) { goto out; } s->conf.bootindex = boot_index; out:
if (local_err) { error_propagate(VAR_4, local_err); } }