summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c')
-rw-r--r--MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c b/MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
index 4ddbc689f1..4e3fc75852 100644
--- a/MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
+++ b/MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
@@ -55,14 +55,14 @@ SetMem64 (
IN UINT64 Value
)
{
- if (Length == 0) {
+ if (0 == Length) {
return Buffer;
}
ASSERT (Buffer != NULL);
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
- ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);
- ASSERT ((Length & (sizeof (Value) - 1)) == 0);
+ ASSERT (0 == (((UINTN)Buffer) & (sizeof (Value) - 1)));
+ ASSERT (0 == (Length & (sizeof (Value) - 1)));
return InternalMemSetMem64 (Buffer, Length / sizeof (Value), Value);
}