Skip to content
Snippets Groups Projects
Commit 3456880f authored by Thomas Meyer's avatar Thomas Meyer Committed by David Teigland
Browse files

dlm: NULL check before some freeing functions is not needed


NULL check before some freeing functions is not needed.

Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent f31a8969
No related branches found
No related tags found
No related merge requests found
...@@ -681,10 +681,8 @@ static int new_lockspace(const char *name, const char *cluster, ...@@ -681,10 +681,8 @@ static int new_lockspace(const char *name, const char *cluster,
out_lkbidr: out_lkbidr:
idr_destroy(&ls->ls_lkbidr); idr_destroy(&ls->ls_lkbidr);
out_rsbtbl: out_rsbtbl:
for (i = 0; i < DLM_REMOVE_NAMES_MAX; i++) { for (i = 0; i < DLM_REMOVE_NAMES_MAX; i++)
if (ls->ls_remove_names[i]) kfree(ls->ls_remove_names[i]);
kfree(ls->ls_remove_names[i]);
}
vfree(ls->ls_rsbtbl); vfree(ls->ls_rsbtbl);
out_lsfree: out_lsfree:
if (do_unreg) if (do_unreg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment