Skip to content

Commit

Permalink
llist: remove redundant code, branch will not be executed
Browse files Browse the repository at this point in the history
Closes #7770
  • Loading branch information
h1zzz authored and bagder committed Sep 24, 2021
1 parent 01f63ed commit ecfc96c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/llist.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ Curl_llist_remove(struct Curl_llist *list, struct Curl_llist_element *e,
e->next->prev = NULL;
}
else {
if(!e->prev)
list->head = e->next;
else
if(e->prev)
e->prev->next = e->next;

if(!e->next)
Expand Down

0 comments on commit ecfc96c

Please sign in to comment.