Use goto exit instead of direct return

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2020-04-28 10:40:30 +02:00
parent a9eecf1b19
commit 785958577e
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD
2 changed files with 3 additions and 3 deletions

View file

@ -1692,7 +1692,7 @@ int main( int argc, char *argv[] )
{
opt.query_config_mode = 1;
query_config_ret = query_config( q );
mbedtls_exit( ret );
goto exit;
}
else if( strcmp( p, "serialize") == 0 )
{
@ -2691,7 +2691,7 @@ int main( int argc, char *argv[] )
{
mbedtls_printf( " failed\n ! mbedtls_ssl_set_cid returned %d\n\n",
ret );
return( ret );
goto exit;
}
}
#endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */

View file

@ -2392,7 +2392,7 @@ int main( int argc, char *argv[] )
{
opt.query_config_mode = 1;
query_config_ret = query_config( q );
mbedtls_exit( ret );
goto exit;
}
else if( strcmp( p, "serialize") == 0 )
{