summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseSerialPortLibNull
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-30 01:07:39 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-30 01:07:39 +0000
commita06638eac2b71661d9d0d15d295cbba6da710b07 (patch)
tree53558af5915cbc392537ae01f47bab0eaf44fe0e /MdePkg/Library/BaseSerialPortLibNull
parent8e456a779472b827a2b321340c00c334fefcca55 (diff)
downloadedk2-a06638eac2b71661d9d0d15d295cbba6da710b07.tar.gz
edk2-a06638eac2b71661d9d0d15d295cbba6da710b07.tar.bz2
edk2-a06638eac2b71661d9d0d15d295cbba6da710b07.zip
Fix issue when BaseDebugLibSerialPort is combined with BaseSerialPortLibNull. It will ASSERT() due to the recent addition of a CONSTRUCTOR to BaseDebugLibSerialPort that calls SerialPortInitialize().
The fix is to change SerialPortInitialize() to always return RETURN_SUCCESS instead of RETURN_UNSUPPORTED. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11207 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseSerialPortLibNull')
-rw-r--r--MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
index f53d127d2a..d44fa523c2 100644
--- a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
+++ b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
@@ -14,8 +14,6 @@
#include <Base.h>
-
-
#include <Library/SerialPortLib.h>
/**
@@ -35,7 +33,7 @@ SerialPortInitialize (
VOID
)
{
- return RETURN_UNSUPPORTED;
+ return RETURN_SUCCESS;
}
/**