summaryrefslogtreecommitdiff
path: root/EdkModulePkg
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-05 06:50:31 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-05 06:50:31 +0000
commitc757cb321ce138fdb499dcb40770e341b9afb136 (patch)
tree342303c25882dd329e962092d89304115574cb57 /EdkModulePkg
parent4250be6c8493b01da97d4ef2594703a772c8b2a8 (diff)
downloadedk2-c757cb321ce138fdb499dcb40770e341b9afb136.zip
edk2-c757cb321ce138fdb499dcb40770e341b9afb136.tar.gz
edk2-c757cb321ce138fdb499dcb40770e341b9afb136.tar.bz2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1459 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/Include/Library/SerialPortLib.h8
-rw-r--r--EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c12
2 files changed, 4 insertions, 16 deletions
diff --git a/EdkModulePkg/Include/Library/SerialPortLib.h b/EdkModulePkg/Include/Library/SerialPortLib.h
index cda5ad1..153e38c 100644
--- a/EdkModulePkg/Include/Library/SerialPortLib.h
+++ b/EdkModulePkg/Include/Library/SerialPortLib.h
@@ -34,8 +34,8 @@ SerialPortInitialize (
/**
Write data to serial device.
- If the buffer is NULL, then ASSERT();
- if NumberOfBytes is zero, then ASSERT().
+ If the buffer is NULL, then return 0;
+ if NumberOfBytes is zero, then return 0.
@param Buffer Point of data buffer which need to be writed.
@param NumberOfBytes Number of output bytes which are cached in Buffer.
@@ -55,8 +55,8 @@ SerialPortWrite (
/**
Read data from serial device and save the datas in buffer.
- If the buffer is NULL, then ASSERT();
- if NumberOfBytes is zero, then ASSERT().
+ If the buffer is NULL, then return zero;
+ if NumberOfBytes is zero, then return zero.
@param Buffer Point of data buffer which need to be writed.
@param NumberOfBytes Number of output bytes which are cached in Buffer.
diff --git a/EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c b/EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
index 1c42eb0..3f2f183 100644
--- a/EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
+++ b/EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
@@ -33,9 +33,6 @@ SerialPortInitialize (
/**
Write data to serial device.
- If the buffer is NULL, then ASSERT();
- if NumberOfBytes is zero, then ASSERT().
-
@param Buffer Point of data buffer which need to be writed.
@param NumberOfBytes Number of output bytes which are cached in Buffer.
@@ -50,9 +47,6 @@ SerialPortWrite (
IN UINTN NumberOfBytes
)
{
- ASSERT (NULL != Buffer);
- ASSERT (0 != NumberOfBytes);
-
return 0;
}
@@ -60,9 +54,6 @@ SerialPortWrite (
/**
Read data from serial device and save the datas in buffer.
- If the buffer is NULL, then ASSERT();
- if NumberOfBytes is zero, then ASSERT().
-
@param Buffer Point of data buffer which need to be writed.
@param NumberOfBytes Number of output bytes which are cached in Buffer.
@@ -77,9 +68,6 @@ SerialPortRead (
IN UINTN NumberOfBytes
)
{
- ASSERT (NULL != Buffer);
- ASSERT (0 != NumberOfBytes);
-
return 0;
}