dm: remove unneeded kvfree from alloc_targets
alloc_targets() is always called with a newly initialized table where t->highs == NULL. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
committed by
Mikulas Patocka
parent
9769378133
commit
d90e7a500c
@@ -117,7 +117,6 @@ static int alloc_targets(struct dm_table *t, unsigned int num)
|
||||
n_targets = (struct dm_target *) (n_highs + num);
|
||||
|
||||
memset(n_highs, -1, sizeof(*n_highs) * num);
|
||||
kvfree(t->highs);
|
||||
|
||||
t->num_allocated = num;
|
||||
t->highs = n_highs;
|
||||
|
||||
Reference in New Issue
Block a user