From: Rob Clark Date: Thu, 11 Oct 2018 23:18:10 +0000 (-0400) Subject: xf86drmHash: remove redundant zero init X-Git-Tag: libdrm-2.4.96~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9dadcece665cdbd4584febf845334db866b57f7;p=platform%2Fupstream%2Flibdrm.git xf86drmHash: remove redundant zero init drmMalloc() is already calloc() Signed-off-by: Rob Clark Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov Signed-off-by: Rob Clark --- diff --git a/xf86drmHash.c b/xf86drmHash.c index 467498c..891b732 100644 --- a/xf86drmHash.c +++ b/xf86drmHash.c @@ -110,12 +110,7 @@ drm_public void *drmHashCreate(void) table = drmMalloc(sizeof(*table)); if (!table) return NULL; table->magic = HASH_MAGIC; - table->entries = 0; - table->hits = 0; - table->partials = 0; - table->misses = 0; - for (i = 0; i < HASH_SIZE; i++) table->buckets[i] = NULL; return table; }