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:
klu2 2008-09-22 02:48:13 +00:00
parent 36c9465c6d
commit e20a8c69b1
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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);
}