summaryrefslogtreecommitdiff
path: root/MdePkg/Library
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseLib/Unaligned.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Unaligned.c b/MdePkg/Library/BaseLib/Unaligned.c
index a54a99e7e6..2ce8fc6992 100644
--- a/MdePkg/Library/BaseLib/Unaligned.c
+++ b/MdePkg/Library/BaseLib/Unaligned.c
@@ -113,7 +113,8 @@ WriteUnaligned24 (
{
ASSERT (Buffer != NULL);
- return *Buffer = BitFieldWrite32 (*Buffer, 0, 23, Value);
+ BitFieldWrite32 (*Buffer, 0, 23, Value);
+ return Value;
}
/**