aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-01-05 08:57:59 -0600
committerEric Engestrom2018-01-31 05:22:47 -0600
commit7797751cf7bbbcffdb1003f3a38479388dc4d7f9 (patch)
treee30ca7b1a09a600d0ea32a287082058df7787997 /xf86drmHash.c
parent75758d2ccf608de5774863d3bb7ae36c50197355 (diff)
downloadexternal-libdrm-7797751cf7bbbcffdb1003f3a38479388dc4d7f9.tar.gz
external-libdrm-7797751cf7bbbcffdb1003f3a38479388dc4d7f9.tar.xz
external-libdrm-7797751cf7bbbcffdb1003f3a38479388dc4d7f9.zip
xf86drmHash: remove always-false #if guards
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'xf86drmHash.c')
-rw-r--r--xf86drmHash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/xf86drmHash.c b/xf86drmHash.c
index f287e61f..b2fa414e 100644
--- a/xf86drmHash.c
+++ b/xf86drmHash.c
@@ -98,9 +98,6 @@ static unsigned long HashHash(unsigned long key)
98 } 98 }
99 99
100 hash %= HASH_SIZE; 100 hash %= HASH_SIZE;
101#if DEBUG
102 printf( "Hash(%lu) = %lu\n", key, hash);
103#endif
104 return hash; 101 return hash;
105} 102}
106 103
@@ -201,9 +198,6 @@ int drmHashInsert(void *t, unsigned long key, void *value)
201 bucket->value = value; 198 bucket->value = value;
202 bucket->next = table->buckets[hash]; 199 bucket->next = table->buckets[hash];
203 table->buckets[hash] = bucket; 200 table->buckets[hash] = bucket;
204#if DEBUG
205 printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
206#endif
207 return 0; /* Added to table */ 201 return 0; /* Added to table */
208} 202}
209 203