From 9b9dd747d8f4697c6d5c947c160d5991c7c8fde5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 02:13:47 +0000 Subject: Coverity #75: Dead variable elimination. --- Xext/sync.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Xext') 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; } -- cgit v1.2.3