Commit d2ce70a1 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Alasdair G Kergon

dm table: remove superfluous variable reset

If allocation fails, the local var *t is not used any more after kfree.
Don't need to reset it to NULL. Remove the unnecesary NULL set here.
Signed-off-by: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent f13945d7
...@@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **result, fmode_t mode, ...@@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **result, fmode_t mode,
if (alloc_targets(t, num_targets)) { if (alloc_targets(t, num_targets)) {
kfree(t); kfree(t);
t = NULL;
return -ENOMEM; return -ENOMEM;
} }
......
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