From ac70d6d55f226a57ea510fe065bf5ab80a9bb795 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 30 May 2015 15:48:13 -0500 Subject: [PATCH] enlarge_blob_table(): remove unnecessary hlist_del() --- src/blob_table.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/blob_table.c b/src/blob_table.c index b3eb63fc..29d44d9f 100644 --- a/src/blob_table.c +++ b/src/blob_table.c @@ -310,12 +310,9 @@ enlarge_blob_table(struct blob_table *table) table->array = new_array; table->capacity = new_capacity; - for (i = 0; i < old_capacity; i++) { - hlist_for_each_entry_safe(blob, tmp, &old_array[i], hash_list) { - hlist_del(&blob->hash_list); + for (i = 0; i < old_capacity; i++) + hlist_for_each_entry_safe(blob, tmp, &old_array[i], hash_list) blob_table_insert_raw(table, blob); - } - } FREE(old_array); } -- 2.43.0