OSDN Git Service

modetest: add C8 support to generate SMPTE pattern
[android-x86/external-libdrm.git] / xf86drmHash.c
index 467498c..2cf2b80 100644 (file)
@@ -105,17 +105,11 @@ static unsigned long HashHash(unsigned long key)
 drm_public void *drmHashCreate(void)
 {
     HashTablePtr table;
-    int          i;
 
     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;
 }