drm: Branch 'master'
[email protected] (GitLab Mirror) Sat, 13 Oct 2018 20:33:31 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
xf86drmHash.c | 5 ----- 1 file changed, 5 deletions(-) New commits: commit f9dadcece665cdbd4584febf845334db866b57f7 Author: Rob Clark <[email protected]> Date: Thu Oct 11 19:18:10 2018 -0400 xf86drmHash: remove redundant zero init drmMalloc() is already calloc() Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Rob Clark <[email protected]> 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; } --