]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
Ensure the validity of Ffs Sections when adding a new Sections to Ffs.
[mirror_edk2.git] / EdkModulePkg / Library / EdkSerialPortLibNull / SerialPortLibNull.c
index d6e91d687dc6f7f3b466de3772a6e43d4351b7a3..3f2f183be568770de898f5ee2c45c50dfdff0877 100644 (file)
@@ -33,9 +33,6 @@ SerialPortInitialize (
 /**\r
   Write data to serial device. \r
  \r
-  If the buffer is NULL, then ASSERT(); \r
-  if NumberOfBytes is zero, then ASSERT(). \r
-\r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
@@ -46,8 +43,8 @@ SerialPortInitialize (
 UINTN\r
 EFIAPI\r
 SerialPortWrite (\r
-  IN UINT8        *Buffer,\r
-  IN UINTN        NumberOfBytes\r
+  IN UINT8     *Buffer,\r
+  IN UINTN     NumberOfBytes\r
 )\r
 {\r
   return 0;\r
@@ -57,9 +54,6 @@ SerialPortWrite (
 /**\r
   Read data from serial device and save the datas in buffer.\r
  \r
-  If the buffer is NULL, then ASSERT(); \r
-  if NumberOfBytes is zero, then ASSERT(). \r
-\r
   @param  Buffer           Point of data buffer which need to be writed.\r
   @param  NumberOfBytes    Number of output bytes which are cached in Buffer.\r
 \r
@@ -70,8 +64,8 @@ SerialPortWrite (
 UINTN\r
 EFIAPI\r
 SerialPortRead (\r
-  OUT UINT8    *Buffer,\r
-  IN  UINTN    NumberOfBytes\r
+  OUT UINT8     *Buffer,\r
+  IN  UINTN     NumberOfBytes\r
 )\r
 {\r
   return 0;\r