`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.
---
 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 7ea8e26a3..ffcae98c6 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -6358,10 +6358,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);
 
-- 
2.29.0


Reply via email to