break;
        }
 
-       if (index == lov->desc.ld_tgt_count)
-               GOTO(out, index = -EINVAL);
+       if (index == lov->desc.ld_tgt_count) {
+               index = -EINVAL;
+               goto out;
+       }
 
        if (ev == OBD_NOTIFY_DEACTIVATE || ev == OBD_NOTIFY_ACTIVATE) {
                activate = (ev == OBD_NOTIFY_ACTIVATE) ? 1 : 0;
                if (lov->lov_tgts[index]->ltd_active == active) {
                        CDEBUG(D_INFO, "OSC %s already %sactive!\n",
                               uuid->uuid, active ? "" : "in");
-                       GOTO(out, index);
+                       goto out;
                } else {
                        CDEBUG(D_CONFIG, "Marking OSC %s %sactive\n",
                               obd_uuid2str(uuid), active ? "" : "in");
 
        rc = lov_connect_obd(obd, index, active, &lov->lov_ocd);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        /* connect to administrative disabled ost */
-       if (!tgt->ltd_exp)
-               GOTO(out, rc = 0);
+       if (!tgt->ltd_exp) {
+               rc = 0;
+               goto out;
+       }
 
        if (lov->lov_cache != NULL) {
                rc = obd_set_info_async(NULL, tgt->ltd_exp,
                                sizeof(struct cl_client_cache), lov->lov_cache,
                                NULL);
                if (rc < 0)
-                       GOTO(out, rc);
+                       goto out;
        }
 
        rc = lov_notify(obd, tgt->ltd_exp->exp_obd,
 
        if (!lov->lov_tgts[index]) {
                CERROR("LOV target at index %d is not setup.\n", index);
-               GOTO(out, rc = -EINVAL);
+               rc = -EINVAL;
+               goto out;
        }
 
        if (uuidp && !obd_uuid_equals(uuidp, &lov->lov_tgts[index]->ltd_uuid)) {
                CERROR("LOV target UUID %s at index %d doesn't match %s.\n",
                       lov_uuid2str(lov, index), index,
                       obd_uuid2str(uuidp));
-               GOTO(out, rc = -EINVAL);
+               rc = -EINVAL;
+               goto out;
        }
 
        CDEBUG(D_CONFIG, "uuid: %s idx: %d gen: %d exp: %p active: %d\n",
        lov->lov_pool_count = 0;
        rc = lov_ost_pool_init(&lov->lov_packed, 0);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        lprocfs_lov_init_vars(&lvars);
        lprocfs_obd_setup(obd, lvars.obd_vars);
                __u32 index;
                int gen;
                /* lov_modify_tgts add  0:lov_mdsA  1:ost1_UUID  2:0  3:1 */
-               if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid))
-                       GOTO(out, rc = -EINVAL);
+               if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) {
+                       rc = -EINVAL;
+                       goto out;
+               }
 
                obd_str2uuid(&obd_uuid,  lustre_cfg_buf(lcfg, 1));
 
-               if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", indexp) != 1)
-                       GOTO(out, rc = -EINVAL);
-               if (sscanf(lustre_cfg_buf(lcfg, 3), "%d", genp) != 1)
-                       GOTO(out, rc = -EINVAL);
+               if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", indexp) != 1) {
+                       rc = -EINVAL;
+                       goto out;
+               }
+               if (sscanf(lustre_cfg_buf(lcfg, 3), "%d", genp) != 1) {
+                       rc = -EINVAL;
+                       goto out;
+               }
                index = *indexp;
                gen = *genp;
                if (cmd == LCFG_LOV_ADD_OBD)
                        rc = lov_add_target(obd, &obd_uuid, index, gen, 0);
                else
                        rc = lov_del_target(obd, index, &obd_uuid, gen);
-               GOTO(out, rc);
+               goto out;
        }
        case LCFG_PARAM: {
                struct lprocfs_static_vars lvars = { NULL };
                struct lov_desc *desc = &(obd->u.lov.desc);
 
-               if (!desc)
-                       GOTO(out, rc = -EINVAL);
+               if (!desc) {
+                       rc = -EINVAL;
+                       goto out;
+               }
 
                lprocfs_lov_init_vars(&lvars);
 
                                              lcfg, obd);
                if (rc > 0)
                        rc = 0;
-               GOTO(out, rc);
+               goto out;
        }
        case LCFG_POOL_NEW:
        case LCFG_POOL_ADD:
        case LCFG_POOL_DEL:
        case LCFG_POOL_REM:
-               GOTO(out, rc);
+               goto out;
 
        default: {
                CERROR("Unknown command: %d\n", lcfg->lcfg_command);
-               GOTO(out, rc = -EINVAL);
+               rc = -EINVAL;
+               goto out;
 
        }
        }
 
        ost_idx = src_oa->o_nlink;
        lsm = *ea;
-       if (lsm == NULL)
-               GOTO(out, rc = -EINVAL);
+       if (lsm == NULL) {
+               rc = -EINVAL;
+               goto out;
+       }
        if (ost_idx >= lov->desc.ld_tgt_count ||
-           !lov->lov_tgts[ost_idx])
-               GOTO(out, rc = -EINVAL);
+           !lov->lov_tgts[ost_idx]) {
+               rc = -EINVAL;
+               goto out;
+       }
 
        for (i = 0; i < lsm->lsm_stripe_count; i++) {
                if (lsm->lsm_oinfo[i]->loi_ost_idx == ost_idx) {
                        if (ostid_id(&lsm->lsm_oinfo[i]->loi_oi) !=
-                                       ostid_id(&src_oa->o_oi))
-                               GOTO(out, rc = -EINVAL);
+                                       ostid_id(&src_oa->o_oi)) {
+                               rc = -EINVAL;
+                               goto out;
+                       }
                        break;
                }
        }
-       if (i == lsm->lsm_stripe_count)
-               GOTO(out, rc = -EINVAL);
+       if (i == lsm->lsm_stripe_count) {
+               rc = -EINVAL;
+               goto out;
+       }
 
        rc = obd_create(NULL, lov->lov_tgts[ost_idx]->ltd_exp,
                        src_oa, &obj_mdp, oti);
        obd_getref(exp->exp_obd);
        rc = lov_prep_destroy_set(exp, &oinfo, oa, lsm, oti, &set);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        list_for_each(pos, &set->set_list) {
                req = list_entry(pos, struct lov_request, rq_link);
                               POSTID(&oinfo->oi_oa->o_oi),
                               POSTID(&req->rq_oi.oi_oa->o_oi),
                               req->rq_idx, rc);
-                       GOTO(out, rc);
+                       goto out;
                }
        }
 
        int cur_stripe = 0, cur_stripe_wrap = 0, stripe_count;
        unsigned int buffer_size = FIEMAP_BUFFER_SIZE;
 
-       if (!lsm_has_objects(lsm))
-               GOTO(out, rc = 0);
+       if (!lsm_has_objects(lsm)) {
+               rc = 0;
+               goto out;
+       }
 
        if (fiemap_count_to_size(fm_key->fiemap.fm_extent_count) < buffer_size)
                buffer_size = fiemap_count_to_size(fm_key->fiemap.fm_extent_count);
 
        OBD_ALLOC_LARGE(fm_local, buffer_size);
-       if (fm_local == NULL)
-               GOTO(out, rc = -ENOMEM);
+       if (fm_local == NULL) {
+               rc = -ENOMEM;
+               goto out;
+       }
        lcl_fm_ext = &fm_local->fm_extents[0];
 
        count_local = fiemap_size_to_count(buffer_size);
 
        fm_end_offset = fiemap_calc_fm_end_offset(fiemap, lsm, fm_start,
                                                  fm_end, &start_stripe);
-       if (fm_end_offset == -EINVAL)
-               GOTO(out, rc = -EINVAL);
+       if (fm_end_offset == -EINVAL) {
+               rc = -EINVAL;
+               goto out;
+       }
 
        if (fiemap_count_to_size(fiemap->fm_extent_count) > *vallen)
                fiemap->fm_extent_count = fiemap_size_to_count(*vallen);
                        fm_key->oa.o_oi = lsm->lsm_oinfo[cur_stripe]->loi_oi;
                        ost_index = lsm->lsm_oinfo[cur_stripe]->loi_ost_idx;
 
-                       if (ost_index < 0 || ost_index >=lov->desc.ld_tgt_count)
-                               GOTO(out, rc = -EINVAL);
+                       if (ost_index < 0 ||
+                           ost_index >= lov->desc.ld_tgt_count) {
+                               rc = -EINVAL;
+                               goto out;
+                       }
 
                        /* If OST is inactive, return extent with UNKNOWN flag */
                        if (!lov->lov_tgts[ost_index]->ltd_active) {
                                          lov->lov_tgts[ost_index]->ltd_exp,
                                          keylen, key, vallen, fm_local, lsm);
                        if (rc != 0)
-                               GOTO(out, rc);
+                               goto out;
 
 inactive_tgt:
                        ext_count = fm_local->fm_mapped_extents;
                struct lov_oinfo *loi;
                __u32 *stripe = val;
 
-               if (*vallen < sizeof(*stripe))
-                       GOTO(out, rc = -EFAULT);
+               if (*vallen < sizeof(*stripe)) {
+                       rc = -EFAULT;
+                       goto out;
+               }
                *vallen = sizeof(*stripe);
 
                /* XXX This is another one of those bits that will need to
                            data->lock->l_conn_export &&
                            ostid_res_name_eq(&loi->loi_oi, res_id)) {
                                *stripe = i;
-                               GOTO(out, rc = 0);
+                               rc = 0;
+                               goto out;
                        }
                }
                LDLM_ERROR(data->lock, "lock on inode without such object");
                dump_lsm(D_ERROR, lsm);
-               GOTO(out, rc = -ENXIO);
+               rc = -ENXIO;
+               goto out;
        } else if (KEY_IS(KEY_LAST_ID)) {
                struct obd_id_info *info = val;
                __u32 size = sizeof(u64);
                LASSERT(*vallen == sizeof(struct obd_id_info));
                tgt = lov->lov_tgts[info->idx];
 
-               if (!tgt || !tgt->ltd_active)
-                       GOTO(out, rc = -ESRCH);
+               if (!tgt || !tgt->ltd_active) {
+                       rc = -ESRCH;
+                       goto out;
+               }
 
                rc = obd_get_info(env, tgt->ltd_exp, keylen, key,
                                  &size, info->data, NULL);
-               GOTO(out, rc = 0);
+               rc = 0;
+               goto out;
        } else if (KEY_IS(KEY_LOVDESC)) {
                struct lov_desc *desc_ret = val;
                *desc_ret = lov->desc;
 
-               GOTO(out, rc = 0);
+               rc = 0;
+               goto out;
        } else if (KEY_IS(KEY_FIEMAP)) {
                rc = lov_fiemap(lov, keylen, key, vallen, val, lsm);
-               GOTO(out, rc);
+               goto out;
        } else if (KEY_IS(KEY_CONNECT_FLAG)) {
                struct lov_tgt_desc *tgt;
                __u64 ost_idx = *((__u64 *)val);
                LASSERT(ost_idx < lov->desc.ld_tgt_count);
                tgt = lov->lov_tgts[ost_idx];
 
-               if (!tgt || !tgt->ltd_exp)
-                       GOTO(out, rc = -ESRCH);
+               if (!tgt || !tgt->ltd_exp) {
+                       rc = -ESRCH;
+                       goto out;
+               }
 
                *((__u64 *)val) = exp_connect_flags(tgt->ltd_exp);
-               GOTO(out, rc = 0);
+               rc = 0;
+               goto out;
        } else if (KEY_IS(KEY_TGT_COUNT)) {
                *((int *)val) = lov->desc.ld_tgt_count;
-               GOTO(out, rc = 0);
+               rc = 0;
+               goto out;
        }
 
        rc = -EINVAL;
 
                        result = ostid_to_fid(ofid, &oinfo->loi_oi,
                                              oinfo->loi_ost_idx);
                        if (result != 0)
-                               GOTO(out, result);
+                               goto out;
 
                        subdev = lovsub2cl_dev(dev->ld_target[ost_idx]);
                        subconf->u.coc_oinfo = oinfo;
        lov_conf_lock(lov);
        if (conf->coc_opc == OBJECT_CONF_INVALIDATE) {
                lov->lo_layout_invalid = true;
-               GOTO(out, result = 0);
+               result = 0;
+               goto out;
        }
 
        if (conf->coc_opc == OBJECT_CONF_WAIT) {
                        result = lov_layout_wait(env, lov);
                        lov_conf_lock(lov);
                }
-               GOTO(out, result);
+               goto out;
        }
 
        LASSERT(conf->coc_opc == OBJECT_CONF_SET);
             (lov->lo_lsm->lsm_pattern == lsm->lsm_pattern))) {
                /* same version of layout */
                lov->lo_layout_invalid = false;
-               GOTO(out, result = 0);
+               result = 0;
+               goto out;
        }
 
        /* will change layout - check if there still exists active IO. */
        if (atomic_read(&lov->lo_active_ios) > 0) {
                lov->lo_layout_invalid = true;
-               GOTO(out, result = -EBUSY);
+               result = -EBUSY;
+               goto out;
        }
 
        lov->lo_layout_invalid = lov_layout_change(env, lov, conf);
 
        /* we only need the header part from user space to get lmm_magic and
         * lmm_stripe_count, (the header part is common to v1 and v3) */
        lum_size = sizeof(struct lov_user_md_v1);
-       if (copy_from_user(&lum, lump, lum_size))
-               GOTO(out_set, rc = -EFAULT);
+       if (copy_from_user(&lum, lump, lum_size)) {
+               rc = -EFAULT;
+               goto out_set;
+       }
        else if ((lum.lmm_magic != LOV_USER_MAGIC) &&
-                (lum.lmm_magic != LOV_USER_MAGIC_V3))
-               GOTO(out_set, rc = -EINVAL);
+                (lum.lmm_magic != LOV_USER_MAGIC_V3)) {
+               rc = -EINVAL;
+               goto out_set;
+       }
 
        if (lum.lmm_stripe_count &&
            (lum.lmm_stripe_count < lsm->lsm_stripe_count)) {
                /* Return right size of stripe to user */
                lum.lmm_stripe_count = lsm->lsm_stripe_count;
                rc = copy_to_user(lump, &lum, lum_size);
-               GOTO(out_set, rc = -EOVERFLOW);
+               rc = -EOVERFLOW;
+               goto out_set;
        }
        rc = lov_packmd(exp, &lmmk, lsm);
        if (rc < 0)
-               GOTO(out_set, rc);
+               goto out_set;
        lmm_size = rc;
        rc = 0;
 
        /* User wasn't expecting this many OST entries */
        if (lum.lmm_stripe_count == 0)
                lmm_size = lum_size;
-       else if (lum.lmm_stripe_count < lmmk->lmm_stripe_count)
-               GOTO(out_set, rc = -EOVERFLOW);
+       else if (lum.lmm_stripe_count < lmmk->lmm_stripe_count) {
+               rc = -EOVERFLOW;
+               goto out_set;
+       }
        /*
         * Have a difference between lov_mds_md & lov_user_md.
         * So we have to re-order the data before copy to user.
 
        cl_page_slice_add(page, &lpg->lps_cl, obj, &lov_page_ops);
 
        sub = lov_sub_get(env, lio, stripe);
-       if (IS_ERR(sub))
-               GOTO(out, rc = PTR_ERR(sub));
+       if (IS_ERR(sub)) {
+               rc = PTR_ERR(sub);
+               goto out;
+       }
 
        subobj = lovsub2cl(r0->lo_sub[stripe]);
        subpage = cl_page_find_sub(sub->sub_env, subobj,
                                   cl_index(subobj, suboff), vmpage, page);
        lov_sub_put(sub);
-       if (IS_ERR(subpage))
-               GOTO(out, rc = PTR_ERR(subpage));
+       if (IS_ERR(subpage)) {
+               rc = PTR_ERR(subpage);
+               goto out;
+       }
 
        if (likely(subpage->cp_parent == page)) {
                lu_ref_add(&subpage->cp_reference, "lov", page);
 
 
        rc = lov_ost_pool_extend(op, min_count);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        /* search ost in pool array */
        for (i = 0; i < op->op_count; i++) {
-               if (op->op_array[i] == idx)
-                       GOTO(out, rc = -EEXIST);
+               if (op->op_array[i] == idx) {
+                       rc = -EEXIST;
+                       goto out;
+               }
        }
        /* ost not found we add it */
        op->op_array[op->op_count] = idx;
        atomic_set(&new_pool->pool_refcount, 1);
        rc = lov_ost_pool_init(&new_pool->pool_obds, 0);
        if (rc)
-              GOTO(out_err, rc);
+               goto out_err;
 
        memset(&(new_pool->pool_rr), 0, sizeof(struct lov_qos_rr));
        rc = lov_ost_pool_init(&new_pool->pool_rr.lqr_pool, 0);
        if (rc)
-               GOTO(out_free_pool_obds, rc);
+               goto out_free_pool_obds;
 
        INIT_HLIST_NODE(&new_pool->pool_hash);
 
        /* add to find only when it fully ready  */
        rc = cfs_hash_add_unique(lov->lov_pools_hash_body, poolname,
                                 &new_pool->pool_hash);
-       if (rc)
-               GOTO(out_err, rc = -EEXIST);
+       if (rc) {
+               rc = -EEXIST;
+               goto out_err;
+       }
 
        CDEBUG(D_CONFIG, LOV_POOLNAMEF" is pool #%d\n",
               poolname, lov->lov_pool_count);
                        break;
        }
        /* test if ost found in lov */
-       if (lov_idx == lov->desc.ld_tgt_count)
-               GOTO(out, rc = -EINVAL);
+       if (lov_idx == lov->desc.ld_tgt_count) {
+               rc = -EINVAL;
+               goto out;
+       }
 
        rc = lov_ost_pool_add(&pool->pool_obds, lov_idx, lov->lov_tgt_size);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        pool->pool_rr.lqr_dirty = 1;
 
        }
 
        /* test if ost found in lov */
-       if (lov_idx == lov->desc.ld_tgt_count)
-               GOTO(out, rc = -EINVAL);
+       if (lov_idx == lov->desc.ld_tgt_count) {
+               rc = -EINVAL;
+               goto out;
+       }
 
        lov_ost_pool_remove(&pool->pool_obds, lov_idx);
 
        down_read(&pool_tgt_rw_sem(pool));
 
        for (i = 0; i < pool_tgt_count(pool); i++) {
-               if (pool_tgt_array(pool)[i] == idx)
-                       GOTO(out, rc = 0);
+               if (pool_tgt_array(pool)[i] == idx) {
+                       rc = 0;
+                       goto out;
+               }
        }
        rc = -ENOENT;
 out:
 
 
        tgt = lov->lov_tgts[ost_idx];
 
-       if (unlikely(tgt == NULL))
-               GOTO(out, rc = 0);
+       if (unlikely(tgt == NULL)) {
+               rc = 0;
+               goto out;
+       }
 
-       if (likely(tgt->ltd_active))
-               GOTO(out, rc = 1);
+       if (likely(tgt->ltd_active)) {
+               rc = 1;
+               goto out;
+       }
 
-       if (tgt->ltd_exp && class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried)
-               GOTO(out, rc = 0);
+       if (tgt->ltd_exp && class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried) {
+               rc = 0;
+               goto out;
+       }
 
        mutex_unlock(&lov->lov_lock);
 
                return -EIO;
 
        OBDO_ALLOC(tmp_oa);
-       if (tmp_oa == NULL)
-               GOTO(out, rc = -ENOMEM);
+       if (tmp_oa == NULL) {
+               rc = -ENOMEM;
+               goto out;
+       }
 
        list_for_each(pos, &set->set_list) {
                req = list_entry(pos, struct lov_request, rq_link);
                /* When we take attributes of some epoch, we require all the
                 * ost to be active. */
                CERROR("Not all the stripes had valid attrs\n");
-               GOTO(out, rc = -EIO);
+               rc = -EIO;
+               goto out;
        }
 
        tmp_oa->o_oi = set->set_oi->oi_oa->o_oi;
                loi = oinfo->oi_md->lsm_oinfo[i];
                if (!lov_check_and_wait_active(lov, loi->loi_ost_idx)) {
                        CDEBUG(D_HA, "lov idx %d inactive\n", loi->loi_ost_idx);
-                       if (oinfo->oi_oa->o_valid & OBD_MD_FLEPOCH)
+                       if (oinfo->oi_oa->o_valid & OBD_MD_FLEPOCH) {
                                /* SOM requires all the OSTs to be active. */
-                               GOTO(out_set, rc = -EIO);
+                               rc = -EIO;
+                               goto out_set;
+                       }
                        continue;
                }
 
                OBD_ALLOC(req, sizeof(*req));
-               if (req == NULL)
-                       GOTO(out_set, rc = -ENOMEM);
+               if (req == NULL) {
+                       rc = -ENOMEM;
+                       goto out_set;
+               }
 
                req->rq_stripe = i;
                req->rq_idx = loi->loi_ost_idx;
                OBDO_ALLOC(req->rq_oi.oi_oa);
                if (req->rq_oi.oi_oa == NULL) {
                        OBD_FREE(req, sizeof(*req));
-                       GOTO(out_set, rc = -ENOMEM);
+                       rc = -ENOMEM;
+                       goto out_set;
                }
                memcpy(req->rq_oi.oi_oa, oinfo->oi_oa,
                       sizeof(*req->rq_oi.oi_oa));
 
                lov_set_add_req(req, set);
        }
-       if (!set->set_count)
-               GOTO(out_set, rc = -EIO);
+       if (!set->set_count) {
+               rc = -EIO;
+               goto out_set;
+       }
        *reqset = set;
        return rc;
 out_set:
                }
 
                OBD_ALLOC(req, sizeof(*req));
-               if (req == NULL)
-                       GOTO(out_set, rc = -ENOMEM);
+               if (req == NULL) {
+                       rc = -ENOMEM;
+                       goto out_set;
+               }
 
                req->rq_stripe = i;
                req->rq_idx = loi->loi_ost_idx;
                OBDO_ALLOC(req->rq_oi.oi_oa);
                if (req->rq_oi.oi_oa == NULL) {
                        OBD_FREE(req, sizeof(*req));
-                       GOTO(out_set, rc = -ENOMEM);
+                       rc = -ENOMEM;
+                       goto out_set;
                }
                memcpy(req->rq_oi.oi_oa, src_oa, sizeof(*req->rq_oi.oi_oa));
                req->rq_oi.oi_oa->o_oi = loi->loi_oi;
                lov_set_add_req(req, set);
        }
-       if (!set->set_count)
-               GOTO(out_set, rc = -EIO);
+       if (!set->set_count) {
+               rc = -EIO;
+               goto out_set;
+       }
        *reqset = set;
        return rc;
 out_set:
                }
 
                OBD_ALLOC(req, sizeof(*req));
-               if (req == NULL)
-                       GOTO(out_set, rc = -ENOMEM);
+               if (req == NULL) {
+                       rc = -ENOMEM;
+                       goto out_set;
+               }
                req->rq_stripe = i;
                req->rq_idx = loi->loi_ost_idx;
 
                OBDO_ALLOC(req->rq_oi.oi_oa);
                if (req->rq_oi.oi_oa == NULL) {
                        OBD_FREE(req, sizeof(*req));
-                       GOTO(out_set, rc = -ENOMEM);
+                       rc = -ENOMEM;
+                       goto out_set;
                }
                memcpy(req->rq_oi.oi_oa, oinfo->oi_oa,
                       sizeof(*req->rq_oi.oi_oa));
                }
                lov_set_add_req(req, set);
        }
-       if (!set->set_count)
-               GOTO(out_set, rc = -EIO);
+       if (!set->set_count) {
+               rc = -EIO;
+               goto out_set;
+       }
        *reqset = set;
        return rc;
 out_set:
           lovset->set_exp is not initialized. */
        lov_update_set(set, lovreq, rc);
        if (rc)
-               GOTO(out, rc);
+               goto out;
 
        obd_getref(lovobd);
        tgt = lov->lov_tgts[lovreq->rq_idx];
        if (!tgt || !tgt->ltd_active)
-               GOTO(out_update, rc);
+               goto out_update;
 
        tgtobd = class_exp2obd(tgt->ltd_exp);
        spin_lock(&tgtobd->obd_osfs_lock);
                }
 
                OBD_ALLOC(req, sizeof(*req));
-               if (req == NULL)
-                       GOTO(out_set, rc = -ENOMEM);
+               if (req == NULL) {
+                       rc = -ENOMEM;
+                       goto out_set;
+               }
 
                OBD_ALLOC(req->rq_oi.oi_osfs, sizeof(*req->rq_oi.oi_osfs));
                if (req->rq_oi.oi_osfs == NULL) {
                        OBD_FREE(req, sizeof(*req));
-                       GOTO(out_set, rc = -ENOMEM);
+                       rc = -ENOMEM;
+                       goto out_set;
                }
 
                req->rq_idx = i;
 
                lov_set_add_req(req, set);
        }
-       if (!set->set_count)
-               GOTO(out_set, rc = -EIO);
+       if (!set->set_count) {
+               rc = -EIO;
+               goto out_set;
+       }
        *reqset = set;
        return rc;
 out_set: