X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiDevicePathLib%2FDevicePathUtilities.c;h=7f21a60380ac5fb800015c69f0f73b34c15c8b6b;hp=b48bf02ae8836128bac4b6c77703bcb6091ca9ae;hb=ed2867debc8ee90ab65823e2fce73992044c795c;hpb=21def103d55dd7b0fd5562634a21415afbb841e2 diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c index b48bf02ae8..7f21a60380 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathUtilities.c @@ -8,7 +8,7 @@ environment varibles. Multi-instance device paths should never be placed on a Handle. - Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -153,12 +153,8 @@ DevicePathNodeLength ( IN CONST VOID *Node ) { - UINTN Length; - ASSERT (Node != NULL); - Length = ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]); - ASSERT (Length >= sizeof (EFI_DEVICE_PATH_PROTOCOL)); - return Length; + return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]); } /**