summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiDevicePathLibDevicePathProtocol
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLibDevicePathProtocol')
-rw-r--r--MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
index 8f2488a3b2..5dd0998762 100644
--- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
@@ -251,12 +251,12 @@ IsDevicePathEndInstance (
UINT16
SetDevicePathNodeLength (
IN OUT VOID *Node,
- IN UINTN NodeLength
+ IN UINTN Length
)
{
ASSERT (Node != NULL);
- ASSERT (NodeLength < 0x10000);
- return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(NodeLength));
+ ASSERT (Length < 0x10000);
+ return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
}
/**