OSDN Git Service

xf86drmHash: remove always-false #if guards
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 5 Jan 2018 14:57:59 +0000 (14:57 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 31 Jan 2018 11:22:47 +0000 (11:22 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
xf86drmHash.c

index f287e61..b2fa414 100644 (file)
@@ -98,9 +98,6 @@ static unsigned long HashHash(unsigned long key)
     }
 
     hash %= HASH_SIZE;
-#if DEBUG
-    printf( "Hash(%lu) = %lu\n", key, hash);
-#endif
     return hash;
 }
 
@@ -201,9 +198,6 @@ int drmHashInsert(void *t, unsigned long key, void *value)
     bucket->value        = value;
     bucket->next         = table->buckets[hash];
     table->buckets[hash] = bucket;
-#if DEBUG
-    printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
-#endif
     return 0;                  /* Added to table */
 }