mirror of https://github.com/acidanthera/audk.git
Code clean up
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5941 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
36c9465c6d
commit
e20a8c69b1
|
@ -45,7 +45,7 @@
|
|||
@param SourceBuffer Pointer to the source buffer to compare.
|
||||
@param Length Number of bytes to compare.
|
||||
|
||||
@return 0 All Length bytes of the two buffers are identical.
|
||||
@retval 0 All Length bytes of the two buffers are identical.
|
||||
@retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first
|
||||
mismatched byte in DestinationBuffer.
|
||||
|
||||
|
|
|
@ -50,5 +50,9 @@ ZeroMem (
|
|||
{
|
||||
ASSERT (!(Buffer == NULL && Length > 0));
|
||||
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
|
||||
if (Length == 0) {
|
||||
return Buffer;
|
||||
}
|
||||
|
||||
return InternalMemZeroMem (Buffer, Length);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue