From df587ee6d6abdfd12a4e2c417c797eeca99742e0 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Wed, 18 Dec 2019 13:16:46 +0000 Subject: [PATCH] Remove duplicate include statement Now that the Error module has error codes as well and is processed by the generate_errors script like any other module, we don't need to include the header manually. --- library/error.c | 3 +-- scripts/data_files/error.fmt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/library/error.c b/library/error.c index 53b3a26b5..c451f4ddf 100644 --- a/library/error.c +++ b/library/error.c @@ -25,8 +25,7 @@ #include MBEDTLS_CONFIG_FILE #endif -#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY) -#include "mbedtls/error.h" +#if defined(MBEDTLS_ERROR_STRERROR_DUMMY) #include #endif diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt index a08742c83..63607054e 100644 --- a/scripts/data_files/error.fmt +++ b/scripts/data_files/error.fmt @@ -25,8 +25,7 @@ #include MBEDTLS_CONFIG_FILE #endif -#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY) -#include "mbedtls/error.h" +#if defined(MBEDTLS_ERROR_STRERROR_DUMMY) #include #endif