xf86drmHash: remove redundant zero init
drmMalloc() is already calloc() Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>main
parent
21f1176458
commit
f9dadcece6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue