ECDH: Removed unnecessary calls to mbedtls_ecp_group_load in ECDH benchmark
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 244174d..e05470a 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -1026,13 +1026,6 @@
CHECK_AND_CONTINUE( mbedtls_ecdh_setup( &ecdh_srv, curve_info->grp_id ) );
CHECK_AND_CONTINUE( mbedtls_ecdh_setup( &ecdh_cli, curve_info->grp_id ) );
-#if defined(MBEDTLS_ECDH_LEGACY_CONTEXT)
- CHECK_AND_CONTINUE( mbedtls_ecp_group_load(&ecdh_srv.grp, curve_info->grp_id));
-#else
- if( ecdh_srv.var == MBEDTLS_ECDH_VARIANT_MBEDTLS_2_0 )
- CHECK_AND_CONTINUE( mbedtls_ecp_group_load( &ecdh_srv.ctx.mbed_ecdh.grp, curve_info->grp_id ));
-#endif
-
mbedtls_snprintf( title, sizeof( title ), "ECDHE-%s", curve_info->name );
TIME_PUBLIC( title, "full handshake",
const unsigned char * p_srv = buf_srv;