Skip to content

Commit d90e7a5

Browse files
bmarzinsMikulas Patocka
authored andcommitted
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 <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 9769378 commit d90e7a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm-table.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ static int alloc_targets(struct dm_table *t, unsigned int num)
117117
n_targets = (struct dm_target *) (n_highs + num);
118118

119119
memset(n_highs, -1, sizeof(*n_highs) * num);
120-
kvfree(t->highs);
121120

122121
t->num_allocated = num;
123122
t->highs = n_highs;

0 commit comments

Comments
 (0)