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 <shhuiw@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent f13945d7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -217,7 +217,6 @@ int dm_table_create(struct dm_table **result, fmode_t mode,

	if (alloc_targets(t, num_targets)) {
		kfree(t);
		t = NULL;
		return -ENOMEM;
	}