summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-24 09:15:47 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-24 09:15:47 +0000
commita9b896f453c83a6f0af653c9c153014a37129453 (patch)
treea18cc3d01feaa623d29abeb3b73d80860874c9d6 /MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
parentb6349c053751cfbcd026110db5864a3ce789bd65 (diff)
downloadedk2-a9b896f453c83a6f0af653c9c153014a37129453.tar.gz
edk2-a9b896f453c83a6f0af653c9c153014a37129453.tar.bz2
edk2-a9b896f453c83a6f0af653c9c153014a37129453.zip
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
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/**