mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
CLEANUP: ssl: Remove useless loop in tlskeys_list_get_next()
This loop was always exited in the first iteration by `return`.
This commit is contained in:
parent
242fb1b639
commit
2c7bb33144
@ -6360,8 +6360,6 @@ struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *getnext, struct
|
||||
{
|
||||
struct tls_keys_ref *ref = getnext;
|
||||
|
||||
while (1) {
|
||||
|
||||
/* Get next list entry. */
|
||||
ref = LIST_NEXT(&ref->list, struct tls_keys_ref *, list);
|
||||
|
||||
@ -6371,7 +6369,6 @@ struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *getnext, struct
|
||||
|
||||
return ref;
|
||||
}
|
||||
}
|
||||
|
||||
static inline
|
||||
struct tls_keys_ref *tlskeys_ref_lookup_ref(const char *reference)
|
||||
|
Loading…
Reference in New Issue
Block a user