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:
Tim Duesterhus 2021-01-03 01:29:55 +01:00 committed by Willy Tarreau
parent 242fb1b639
commit 2c7bb33144

View File

@ -6360,8 +6360,6 @@ struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *getnext, struct
{ {
struct tls_keys_ref *ref = getnext; struct tls_keys_ref *ref = getnext;
while (1) {
/* Get next list entry. */ /* Get next list entry. */
ref = LIST_NEXT(&ref->list, struct tls_keys_ref *, list); ref = LIST_NEXT(&ref->list, struct tls_keys_ref *, list);
@ -6370,7 +6368,6 @@ struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *getnext, struct
return NULL; return NULL;
return ref; return ref;
}
} }
static inline static inline