diff mbox series

[1/2] crypto: remove shadowed 'ret' variable

Message ID 20230922160644.438631-2-berrange@redhat.com (mailing list archive)
State New, archived
Headers show
Series remove some variable shadowing | expand

Commit Message

Daniel P. Berrangé Sept. 22, 2023, 4:06 p.m. UTC
Both instances of 'ret' are used to store a gnutls API return code.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 crypto/tls-cipher-suites.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Philippe Mathieu-Daudé Sept. 22, 2023, 6:15 p.m. UTC | #1
On 22/9/23 18:06, Daniel P. Berrangé wrote:
> Both instances of 'ret' are used to store a gnutls API return code.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   crypto/tls-cipher-suites.c | 1 -
>   1 file changed, 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

diff --git a/crypto/tls-cipher-suites.c b/crypto/tls-cipher-suites.c
index 5e4f597464..d0df4badc0 100644
--- a/crypto/tls-cipher-suites.c
+++ b/crypto/tls-cipher-suites.c
@@ -52,7 +52,6 @@  GByteArray *qcrypto_tls_cipher_suites_get_data(QCryptoTLSCipherSuites *obj,
     byte_array = g_byte_array_new();
 
     for (i = 0;; i++) {
-        int ret;
         unsigned idx;
         const char *name;
         IANA_TLS_CIPHER cipher;