Skip to content

Commit

Permalink
Remove redundant assignments when removing connection from TQ
Browse files Browse the repository at this point in the history
These were there because I was never able to figure out why connections
would sometimes be ressucitated.  Since that's been fixed, let's remove
these useless assignments.
  • Loading branch information
lpereira committed Apr 22, 2022
1 parent f572581 commit 7a8a0eb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/lwan-tq.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ static inline void timeout_queue_remove(struct timeout_queue *tq,

next->prev = node->prev;
prev->next = node->next;

node->next = node->prev = -1;
}

bool timeout_queue_empty(struct timeout_queue *tq) { return tq->head.next < 0; }
Expand Down

0 comments on commit 7a8a0eb

Please sign in to comment.