Skip to content

Commit c1b6fdc

Browse files
Ron EldorRon Eldor
authored andcommitted
Rename parameter name
Rename `obsolete_ctx` to `unused_ctx` as it is simply unused.
1 parent 666ebe3 commit c1b6fdc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

features/mbedtls/platform/inc/platform_alt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mbedtls_platform_context;
4949
* implementation is platform-specific, and its implementation MUST be provided.
5050
*
5151
*/
52-
int crypto_platform_setup( crypto_platform_ctx *ctx );
52+
int crypto_platform_setup( crypto_platform_ctx *unused_ctx );
5353

5454
/**
5555
* \brief This function performs any platform teardown operations, to disable cryptographic operations.
@@ -60,7 +60,7 @@ int crypto_platform_setup( crypto_platform_ctx *ctx );
6060
* Its implementation is platform-specific,and its implementation MUST be provided.
6161
*
6262
*/
63-
void crypto_platform_terminate( crypto_platform_ctx *ctx );
63+
void crypto_platform_terminate( crypto_platform_ctx *unused_ctx );
6464
#endif
6565
#endif /* __PLATFORM_ALT__ */
6666

features/mbedtls/platform/src/platform_alt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
mbedtls_platform_context ctx = { };
2626

27-
int mbedtls_platform_setup( mbedtls_platform_context *obsolete_ctx )
27+
int mbedtls_platform_setup( mbedtls_platform_context *unused_ctx )
2828
{
2929
int ret = 0;
3030

@@ -38,9 +38,8 @@ int mbedtls_platform_setup( mbedtls_platform_context *obsolete_ctx )
3838
return ( ret );
3939
}
4040

41-
void mbedtls_platform_teardown( mbedtls_platform_context *obsolete_ctx )
41+
void mbedtls_platform_teardown( mbedtls_platform_context *unused_ctx )
4242
{
43-
4443
core_util_atomic_decr_u32( ( volatile uint32_t * )&ctx.reference_count, 1 );
4544
if( ctx.reference_count < 1 )
4645
{

0 commit comments

Comments
 (0)