summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--StdLib/LibC/Wchar/ConsDecons.c5
-rw-r--r--StdLib/LibC/Wchar/Wchar.inf1
2 files changed, 1 insertions, 5 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;
}
diff --git a/StdLib/LibC/Wchar/Wchar.inf b/StdLib/LibC/Wchar/Wchar.inf
index 5a88233600..da9a672f79 100644
--- a/StdLib/LibC/Wchar/Wchar.inf
+++ b/StdLib/LibC/Wchar/Wchar.inf
@@ -44,7 +44,6 @@
BaseLib
BaseMemoryLib
MemoryAllocationLib
- LibC
################################################################
#