llist: remove redundant code, branch will not be executed

Closes #7770
This commit is contained in:
h1zzz 2021-09-24 15:33:38 +08:00 committed by Daniel Stenberg
parent 01f63ed62a
commit ecfc96c9bb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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)