mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 02:15:40 +01:00
Fix two warnings from armcc v5
assignment in condition
This commit is contained in:
parent
63adb49062
commit
7f84905552
@ -456,7 +456,7 @@ int camellia_setkey_dec( camellia_context *ctx, const unsigned char *key,
|
|||||||
camellia_init( &cty );
|
camellia_init( &cty );
|
||||||
|
|
||||||
/* Also checks keysize */
|
/* Also checks keysize */
|
||||||
if( ( ret = camellia_setkey_enc( &cty, key, keysize ) ) )
|
if( ( ret = camellia_setkey_enc( &cty, key, keysize ) ) != 0 )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
ctx->nr = cty.nr;
|
ctx->nr = cty.nr;
|
||||||
|
@ -345,7 +345,7 @@ static int pk_group_from_specified( const asn1_buf *params, ecp_group *grp )
|
|||||||
/*
|
/*
|
||||||
* order INTEGER
|
* order INTEGER
|
||||||
*/
|
*/
|
||||||
if( ( ret = asn1_get_mpi( &p, end, &grp->N ) ) )
|
if( ( ret = asn1_get_mpi( &p, end, &grp->N ) ) != 0 )
|
||||||
return( POLARSSL_ERR_PK_KEY_INVALID_FORMAT + ret );
|
return( POLARSSL_ERR_PK_KEY_INVALID_FORMAT + ret );
|
||||||
|
|
||||||
grp->nbits = mpi_msb( &grp->N );
|
grp->nbits = mpi_msb( &grp->N );
|
||||||
|
Loading…
Reference in New Issue
Block a user