Fix code style (for real this time, hopefully)
For some reason I didn't think about other files in the previous commit.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/tests/include/test/bignum_codepath_check.h b/tests/include/test/bignum_codepath_check.h
index 34dfc56..2f954e9 100644
--- a/tests/include/test/bignum_codepath_check.h
+++ b/tests/include/test/bignum_codepath_check.h
@@ -59,11 +59,12 @@
*/
#define ASSERT_BIGNUM_CODEPATH(path, ret, E) \
do { \
- if((ret)!=0 || (E).n == 0) \
+ if ((ret) != 0 || (E).n == 0) { \
TEST_ASSERT(mbedtls_codepath_check == (path) || \
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
- else \
+ } else { \
TEST_EQUAL(mbedtls_codepath_check, (path)); \
+ } \
} while (0)
/** Check the codepath taken and fail if it doesn't match.
@@ -80,11 +81,12 @@
*/
#define ASSERT_RSA_CODEPATH(path, ret) \
do { \
- if((ret)!=0) \
+ if ((ret) != 0) { \
TEST_ASSERT(mbedtls_codepath_check == (path) || \
mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST); \
- else \
+ } else { \
TEST_EQUAL(mbedtls_codepath_check, (path)); \
+ } \
} while (0)
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
diff --git a/tests/src/bignum_codepath_check.c b/tests/src/bignum_codepath_check.c
index b6b85d9..b752d13 100644
--- a/tests/src/bignum_codepath_check.c
+++ b/tests/src/bignum_codepath_check.c
@@ -13,7 +13,7 @@
void mbedtls_codepath_take_safe(void)
{
- if(mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST) {
+ if (mbedtls_codepath_check == MBEDTLS_MPI_IS_TEST) {
mbedtls_codepath_check = MBEDTLS_MPI_IS_SECRET;
}
}
@@ -36,4 +36,3 @@
}
#endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */
-