From 27a65ea2ba246a598523d565cfaa352c2e9a0af9 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sun, 3 Jan 2021 01:29:56 +0100 Subject: [PATCH] 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. (cherry picked from commit cb8b281c022912820898ae9ebaea868cf1a07d58) Signed-off-by: William Lallemand --- src/ssl_sock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 07b2123..2a215ed 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -6406,10 +6406,8 @@ static int ssl_sock_show_fd(struct buffer *buf, const struct connection *conn, c */ #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); -- 1.7.10.4