diff options
author | h1zzz <root@h1zzz.net> | 2021-09-24 15:33:38 +0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-09-24 12:49:53 +0200 |
commit | ecfc96c9bb78ab1050fc605e409a404a27c77276 (patch) | |
tree | b229f65381c04d17a43993beef5d1537a6d2e891 | |
parent | 01f63ed62ab54f652c5bbf5933f7b16460e28262 (diff) | |
download | curl-ecfc96c9bb78ab1050fc605e409a404a27c77276.tar.gz |
llist: remove redundant code, branch will not be executed
Closes #7770
-rw-r--r-- | lib/llist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/llist.c b/lib/llist.c index e0ec7393d..e78da7da8 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -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) |