summaryrefslogtreecommitdiffstats
path: root/StdLib/LibC/Wchar/ConsDecons.c
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/LibC/Wchar/ConsDecons.c')
-rw-r--r--StdLib/LibC/Wchar/ConsDecons.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/StdLib/LibC/Wchar/ConsDecons.c b/StdLib/LibC/Wchar/ConsDecons.c
index 534d3e3b08..8435831834 100644
--- a/StdLib/LibC/Wchar/ConsDecons.c
+++ b/StdLib/LibC/Wchar/ConsDecons.c
@@ -19,7 +19,6 @@
#include <LibConfig.h>
-#include <errno.h>
#include <wchar.h>
/* Data initialized by the library constructor */
@@ -44,9 +43,7 @@ __wchar_construct(
ASSERT(__wchar_bitmap != NULL);
if (EFI_ERROR (Status)) {
__wchar_bitmap = NULL;
- EFIerrno = Status;
- errno = ENOMEM;
- return EFIerrno;
+ return Status;
}
return RETURN_SUCCESS;
}