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/UefiDevicePathLib/UefiDevicePathLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg/Library/UefiDevicePathLib') diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index 15b16a237a..46c5c058f3 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -153,7 +153,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