From: Tim Duesterhus Date: Sun, 3 Jan 2021 00:29:56 +0000 (+0100) Subject: CLEANUP: ssl: Remove useless local variable in tlskeys_list_get_next() X-Git-Tag: v2.4-dev5~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb8b281c022912820898ae9ebaea868cf1a07d58;p=thirdparty%2Fhaproxy.git CLEANUP: ssl: Remove useless local variable in tlskeys_list_get_next() `getnext` was only used to fill `ref` at the beginning of the function. Both have the same type. Replace the parameter name by `ref` to remove the useless local variable. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 6374781a98..17f74c49f9 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -6356,10 +6356,8 @@ static int ssl_check_async_engine_count(void) { */ #if (defined SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB && TLS_TICKETS_NO > 0) static inline -struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *getnext, struct list *end) +struct tls_keys_ref *tlskeys_list_get_next(struct tls_keys_ref *ref, struct list *end) { - struct tls_keys_ref *ref = getnext; - /* Get next list entry. */ ref = LIST_NEXT(&ref->list, struct tls_keys_ref *, list);