From f9dadcece665cdbd4584febf845334db866b57f7 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 11 Oct 2018 19:18:10 -0400 Subject: [PATCH] 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 --- xf86drmHash.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xf86drmHash.c b/xf86drmHash.c index 467498cc..891b7326 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; }