enlarge_blob_table(): remove unnecessary hlist_del()
authorEric Biggers <ebiggers3@gmail.com>
Sat, 30 May 2015 20:48:13 +0000 (15:48 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 5 Jun 2015 03:05:37 +0000 (22:05 -0500)
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);
 }