Remove the invalid input for platform module
Remove the invalid input for the platform module,
as it's not currently used in the Mbed OS platform setup \
termination code.
diff --git a/include/mbedtls/error.h b/include/mbedtls/error.h
index 95415dc..2b83c2d 100644
--- a/include/mbedtls/error.h
+++ b/include/mbedtls/error.h
@@ -80,7 +80,7 @@
* CHACHA20 3 0x0051-0x0055
* POLY1305 3 0x0057-0x005B
* CHACHAPOLY 2 0x0054-0x0056
- * PLATFORM 2 0x0080-0x0082
+ * PLATFORM 1 0x0080-0x0080
*
* High-level module nr (3 bits - 0x0...-0x7...)
* Name ID Nr of Errors
diff --git a/include/mbedtls/platform.h b/include/mbedtls/platform.h
index a1cd689..cb21d2a 100644
--- a/include/mbedtls/platform.h
+++ b/include/mbedtls/platform.h
@@ -43,8 +43,7 @@
#include "platform_time.h"
#endif
-#define MBEDTLS_ERR_PLATFORM_INVALID_DATA -0x0080 /**< Bad input parameters to the platform function. */
-#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0082 /**< Hardware platform function failed. */
+#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080 /**< Hardware platform function failed. */
#ifdef __cplusplus
extern "C" {
diff --git a/library/error.c b/library/error.c
index f34a6ef..d3b155b 100644
--- a/library/error.c
+++ b/library/error.c
@@ -826,8 +826,6 @@
#endif /* MBEDTLS_PADLOCK_C */
#if defined(MBEDTLS_PLATFORM_C)
- if( use_ret == -(MBEDTLS_ERR_PLATFORM_INVALID_DATA) )
- mbedtls_snprintf( buf, buflen, "PLATFORM - Bad input parameters to the platform function" );
if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_FAILED) )
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware platform function failed" );
#endif /* MBEDTLS_PLATFORM_C */