mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-10 07:36:28 -04:00
Remove unnecessary NULL assignments
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
5ad5e1657d
commit
e6917d05d3
@ -494,14 +494,9 @@ int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end,
|
|||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
prev = NULL;
|
|
||||||
|
|
||||||
/* Skip the first element as we did not allocate it */
|
/* Skip the first element as we did not allocate it */
|
||||||
allocated = head->next;
|
allocated = head->next;
|
||||||
|
|
||||||
/* Make sure we cannot be followed along this list */
|
|
||||||
head->next = NULL;
|
|
||||||
|
|
||||||
while( allocated != NULL )
|
while( allocated != NULL )
|
||||||
{
|
{
|
||||||
prev = allocated;
|
prev = allocated;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user