Remove error_description variable from strerr functions
This was suggested on this PR: https://github.com/ARMmbed/mbedtls/pull/3176
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt
index 0e128e8..e908aac 100644
--- a/scripts/data_files/error.fmt
+++ b/scripts/data_files/error.fmt
@@ -45,7 +45,6 @@
const char * mbedtls_high_level_strerr( int error_code )
{
int high_level_error_code;
- const char *error_description = NULL;
if( error_code < 0 )
error_code = -error_code;
@@ -63,13 +62,12 @@
break;
}
- return error_description;
+ return NULL;
}
const char * mbedtls_low_level_strerr( int error_code )
{
int low_level_error_code;
- const char *error_description = NULL;
if( error_code < 0 )
error_code = -error_code;
@@ -87,7 +85,7 @@
break;
}
- return error_description;
+ return NULL;
}
void mbedtls_strerror( int ret, char *buf, size_t buflen )