From a9b896f453c83a6f0af653c9c153014a37129453 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 24 Feb 2009 09:15:47 +0000 Subject: Remove the work-around in DevicePathLib to judge the end of device path node type. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7644 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg/Library/UefiDevicePathLibDevicePathProtocol') diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c index 5dd0998762..25fcc8293c 100644 --- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c @@ -182,7 +182,7 @@ IsDevicePathEndType ( ) { ASSERT (Node != NULL); - return (BOOLEAN) ((DevicePathType (Node) & 0x7f) == END_DEVICE_PATH_TYPE); + return (BOOLEAN) (DevicePathType (Node)) == END_DEVICE_PATH_TYPE); } /** -- cgit v1.2.3