summaryrefslogtreecommitdiff
path: root/dix/resource.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-02-01 15:11:27 +1100
committerAdam Jackson <ajax@redhat.com>2008-02-14 07:51:29 +1100
commit89d3249c3e7611b22414bc84b10ca60aab4b9a77 (patch)
tree7d853a3efeb0a3f59ef2b3e82429d36c5fe2cd1d /dix/resource.c
parent238b816469355159eea98600ca900e3baa8fa313 (diff)
Silence FreeResource()
Diffstat (limited to 'dix/resource.c')
-rw-r--r--dix/resource.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/dix/resource.c b/dix/resource.c
index 6c1b04dc7..f318de3c0 100644
--- a/dix/resource.c
+++ b/dix/resource.c
@@ -535,7 +535,6 @@ FreeResource(XID id, RESTYPE skipDeleteFuncType)
ResourcePtr *prev, *head;
int *eltptr;
int elements;
- Bool gotOne = FALSE;
if (((cid = CLIENT_ID(id)) < MAXCLIENTS) && clientTable[cid].buckets)
{
@@ -563,15 +562,11 @@ FreeResource(XID id, RESTYPE skipDeleteFuncType)
xfree(res);
if (*eltptr != elements)
prev = head; /* prev may no longer be valid */
- gotOne = TRUE;
}
else
prev = &res->next;
}
}
- if (!gotOne)
- ErrorF("Freeing resource id=%lX which isn't there.\n",
- (unsigned long)id);
}