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

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 <>
Signed-off-by: default avatarAlasdair G Kergon <>
parent f13945d7
......@@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **result, fmode_t mode,
if (alloc_targets(t, num_targets)) {
t = NULL;
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