Commit 9b9dd747 authored by Adam Jackson's avatar Adam Jackson 💣

Coverity #75: Dead variable elimination.

parent 3f87aeef
2006-04-02 Adam Jackson <ajax@freedesktop.org>
* Xext/sync.c:
Coverity #75: Dead variable elimination.
2006-04-02 Adam Jackson <ajax@freedesktop.org>
* os/xdmauth.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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment