]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: Remove useless local variable in tlskeys_list_get_next()
authorTim Duesterhus <tim@bastelstu.be>
Sun, 3 Jan 2021 00:29:56 +0000 (01:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jan 2021 09:25:20 +0000 (10:25 +0100)
`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

index 6374781a98ca48e9aebf9ab3f753516669241793..17f74c49f957bd27b3e1a635ff06da187caeb775 100644 (file)
@@ -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);