summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 02:13:47 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 02:13:47 +0000
commit9b9dd747d8f4697c6d5c947c160d5991c7c8fde5 (patch)
tree243ef9e8815031a1b6313bb4f70dcb2dc6bec5a9 /Xext
parent3f87aeefb4be3ac23ae636d3756ffdc446eaa62d (diff)
Coverity #75: Dead variable elimination.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/sync.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index 3d3d67559..c88d81c36 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -301,7 +301,7 @@ static void
SyncDeleteTriggerFromCounter(pTrigger)
SyncTrigger *pTrigger;
{
- SyncTriggerList *pCur, *pPrev = NULL;
+ SyncTriggerList *pCur;
/* pCounter needs to be stored in pTrigger before calling here. */
@@ -312,10 +312,7 @@ SyncDeleteTriggerFromCounter(pTrigger)
{
if (pCur->pTrigger == pTrigger)
{
- if (pPrev)
- pPrev->next = pCur->next;
- else
- pTrigger->pCounter->pTriglist = pCur->next;
+ pTrigger->pCounter->pTriglist = pCur->next;
xfree(pCur);
break;
}