mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-02 06:57:24 +00:00
ssl_tls: remove redundant status check
This commit is contained in:
+1
-2
@@ -509,8 +509,7 @@ static int tls_prf_generic( mbedtls_md_type_t md_type,
|
|||||||
|
|
||||||
if( ( status = psa_allocate_key( &master_slot ) ) != PSA_SUCCESS )
|
if( ( status = psa_allocate_key( &master_slot ) ) != PSA_SUCCESS )
|
||||||
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
||||||
if( status != PSA_SUCCESS )
|
|
||||||
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
|
||||||
if( md_type == MBEDTLS_MD_SHA384 )
|
if( md_type == MBEDTLS_MD_SHA384 )
|
||||||
alg = PSA_ALG_TLS12_PRF(PSA_ALG_SHA_384);
|
alg = PSA_ALG_TLS12_PRF(PSA_ALG_SHA_384);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user