diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2025-04-15 07:17:15 +0300 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-05-04 12:35:05 +0300 |
commit | d90e7a500cb62fe0de2591b6f08b6a3483434a3e (patch) | |
tree | 6b08ad1486611a04bd88663738d1b45d0ffa8224 | |
parent | 9769378133bbc4b77458ed0a520b008439a45488 (diff) | |
download | linux-d90e7a500cb62fe0de2591b6f08b6a3483434a3e.tar.xz |
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>
-rw-r--r-- | drivers/md/dm-table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 933e01f3fab4..a937e1e12482 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -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; |