list_del_init(&eco->eo_obj_chain);
spin_unlock(&ec->ec_lock);
- if (eco->eo_oinfo)
- OBD_FREE_PTR(eco->eo_oinfo);
+ OBD_FREE_PTR(eco->eo_oinfo);
}
static void echo_object_free_rcu(struct rcu_head *head)
}
out:
- if (oinfo)
- OBD_FREE_PTR(oinfo);
+ OBD_FREE_PTR(oinfo);
cl_env_put(env, &refcheck);
RETURN(eco);
echo_ucred_fini(env);
out_name:
- if (name)
- OBD_FREE(name, namelen + 1);
+ OBD_FREE(name, namelen + 1);
out_put:
lu_object_put(env, parent);
out_free:
m->ofd_dt_dev.dd_lu_dev.ld_site->ls_top_dev = &m->ofd_dt_dev.dd_lu_dev;
out:
- if (data)
- OBD_FREE_PTR(data);
+ OBD_FREE_PTR(data);
RETURN(rc);
}
GOTO(out_free, rc);
}
out_free:
- if (lwp_name != NULL)
- OBD_FREE(lwp_name, MAX_OBD_NAME);
+ OBD_FREE(lwp_name, MAX_OBD_NAME);
return rc;
}
*/
static int ofd_lvbo_free(struct ldlm_resource *res)
{
- if (res->lr_lvb_data)
- OBD_FREE(res->lr_lvb_data, res->lr_lvb_len);
+ OBD_FREE(res->lr_lvb_data, res->lr_lvb_len);
return 0;
}
imp = lwp->lpd_obd->u.cli.cl_import;
rc = ptlrpc_init_import(imp);
out:
- if (bufs != NULL)
- OBD_FREE_PTR(bufs);
- if (server_uuid != NULL)
- OBD_FREE(server_uuid, len);
- if (lcfg)
- OBD_FREE(lcfg, lustre_cfg_len(lcfg->lcfg_bufcount,
- lcfg->lcfg_buflens));
+ OBD_FREE_PTR(bufs);
+ OBD_FREE(server_uuid, len);
+ OBD_FREE(lcfg, lustre_cfg_len(lcfg->lcfg_bufcount,
+ lcfg->lcfg_buflens));
if (rc)
client_obd_cleanup(lwp->lpd_obd);
rc = ptlrpc_init_import(imp);
if (rc)
GOTO(out, rc);
- if (osdname)
- OBD_FREE(osdname, MAX_OBD_NAME);
+ OBD_FREE(osdname, MAX_OBD_NAME);
init_waitqueue_head(&osp->opd_out_waitq);
RETURN(0);
out_disconnect:
obd_disconnect(osp->opd_storage_exp);
out_fini:
- if (osdname)
- OBD_FREE(osdname, MAX_OBD_NAME);
+ OBD_FREE(osdname, MAX_OBD_NAME);
RETURN(rc);
}
}
out:
ptlrpc_req_put(req);
- if (oa)
- OBD_FREE_PTR(oa);
+ OBD_FREE_PTR(oa);
RETURN(rc);
}
err_llog:
osp_sync_llog_fini(env, d);
err_id:
- if (args)
- OBD_FREE_PTR(args);
+ OBD_FREE_PTR(args);
return rc;
}