mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
dlm: NULL check before some freeing functions is not needed
NULL check before some freeing functions is not needed. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
f31a896928
commit
3456880ff3
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue