]> wimlib.net Git - wimlib/blobdiff - src/blob_table.c
enlarge_blob_table(): remove unnecessary hlist_del()
[wimlib] / src / blob_table.c
index b3eb63fcad750d17ea7dbe471a543748738a1043..29d44d9f031455ffca4c5b2180e3a720660da4e0 100644 (file)
@@ -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);
 }