From e4b3f75298321d14fc20817ad2817d040788bb3f Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 11 Dec 2023 17:57:16 +0000 Subject: [PATCH] Remove unnecessary check Signed-off-by: Paul Elliott --- programs/aes/crypt_and_hash.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/programs/aes/crypt_and_hash.c b/programs/aes/crypt_and_hash.c index f15b85e2c0..b2cd704710 100644 --- a/programs/aes/crypt_and_hash.c +++ b/programs/aes/crypt_and_hash.c @@ -103,14 +103,11 @@ int main(int argc, char *argv[]) list = mbedtls_cipher_list(); while (*list) { cipher_info = mbedtls_cipher_info_from_type(*list); - if (cipher_info) { - const char *name = mbedtls_cipher_info_get_name(cipher_info); + const char *name = mbedtls_cipher_info_get_name(cipher_info); - if (name) { - mbedtls_printf(" %s\n", mbedtls_cipher_info_get_name(cipher_info)); - } + if (name) { + mbedtls_printf(" %s\n", mbedtls_cipher_info_get_name(cipher_info)); } - list++; }