Commit 6ae07548 authored by Xue jiufei's avatar Xue jiufei Committed by Linus Torvalds

ocfs2: remove unused code in dlm_new_lockres()

Remove the branch that free res-> because the condition
is never satisfied when jump to label error.
Signed-off-by: default avatarjoyce.xue <>
Cc: Mark Fasheh <>
Cc: Joel Becker <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9a7e6b5a
......@@ -625,9 +625,6 @@ struct dlm_lock_resource *dlm_new_lockres(struct dlm_ctxt *dlm,
return res;
if (res && res->
kmem_cache_free(dlm_lockname_cache, (void *)res->;
if (res)
kmem_cache_free(dlm_lockres_cache, res);
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment