Thread (7 messages) 7 messages, 5 authors, 2016-06-15

Re: [PATCH] hash: Remove useless init_hash()

flat view

From: Stephen Boyd <hidden>
Date: 2016-06-15 22:49:12

 On 07/27/2010 12:58 PM, Ævar Arnfjörð Bjarmason wrote:
quoted
That being said, I agree with the comments that removing init_hash
actually makes the code _less_ readable. You could just replace these
three lines with a memset, but why? It's just code churn.
Yeah, and for the record it also missed this part in hash.c:

     void free_hash(struct hash_table *table)
     {
     	free(table->array);
     	table->array = NULL;
     	table->size = 0;
     	table->nr = 0;
     }

Have fun everyone :)
Ok, seems like nobody thinks this is a good idea so I'm fine with dropping it. The minimal savings (if at all) doesn't seem worth the code churn. One less patch in the queue ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help