X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkModulePkg%2FInclude%2FLibrary%2FSerialPortLib.h;h=153e38cd15fce91ca0c0cc6d608ec23686eea1e1;hb=c757cb321ce138fdb499dcb40770e341b9afb136;hp=cda5ad17dba0d9d5d4bbc75dda880433b8d8def5;hpb=a93763b74df753b3e8de6a49eea5cbd1116b2535;p=mirror_edk2.git diff --git a/EdkModulePkg/Include/Library/SerialPortLib.h b/EdkModulePkg/Include/Library/SerialPortLib.h index cda5ad17db..153e38cd15 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.