From 178ec96c89c30b271b43c0fe77615a059fafc3ca Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Tue, 18 Oct 2022 17:42:22 +0100 Subject: [PATCH] Remove unnecessary NULL assignments Signed-off-by: David Horstmann --- library/x509.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/x509.c b/library/x509.c index 403507413d..812eba8afd 100644 --- a/library/x509.c +++ b/library/x509.c @@ -538,14 +538,9 @@ int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end, } error: - prev = NULL; - /* Skip the first element as we did not allocate it */ allocated = head->next; - /* Make sure we cannot be followed along this list */ - head->next = NULL; - while( allocated != NULL ) { prev = allocated;