Remove unnecessary if defined

This commit removes unnecessary if defined for multiple files as they
are already guarded.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
Harry Ramsey 2024-10-21 12:00:24 +01:00
parent 924dca9d39
commit bef54c5003
3 changed files with 0 additions and 6 deletions

View File

@ -718,8 +718,6 @@ void mbedtls_test_err_add_check(int high, int low,
}
}
#if defined(MBEDTLS_TEST_HOOKS)
void (*mbedtls_test_hook_error_add)(int, int, const char *, int);
#endif
#endif /* MBEDTLS_TEST_HOOKS */

View File

@ -16,9 +16,7 @@
#include <stdlib.h>
#include <string.h>
#if defined(MBEDTLS_ERRORCOMMON_C)
#include "mbedtls/error_common.h"
#endif
#include "mbedtls/platform.h"
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)

View File

@ -232,9 +232,7 @@ int main(int argc, const char *argv[])
#if defined(MBEDTLS_TEST_HOOKS)
extern void (*mbedtls_test_hook_test_fail)(const char *test, int line, const char *file);
mbedtls_test_hook_test_fail = &mbedtls_test_fail;
#if defined(MBEDTLS_ERRORCOMMON_C)
mbedtls_test_hook_error_add = &mbedtls_test_err_add_check;
#endif
#endif
/* Try changing to the directory containing the executable, if