summaryrefslogtreecommitdiff
path: root/MdePkg
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
parentb6349c053751cfbcd026110db5864a3ce789bd65 (diff)
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')
-rw-r--r--MdePkg/Include/Library/PrintLib.h4
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c2
-rw-r--r--MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c2
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Include/Library/PrintLib.h b/MdePkg/Include/Library/PrintLib.h
index 258324a93..5395c13e6 100644
--- a/MdePkg/Include/Library/PrintLib.h
+++ b/MdePkg/Include/Library/PrintLib.h
@@ -170,12 +170,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
///
/// Define the maximum number of characters that are required to
-/// encode a decimal, hexidecimal, GUID, or TIME value with a NULL
+/// encode a decimal, hexadecimal, GUID, or TIME value with a NULL
/// terminator.
///
/// Maximum Length Decimal String = 28
/// "-9,223,372,036,854,775,808"
-/// Maximum Length Hexidecimal String = 17
+/// Maximum Length Hexadecimal String = 17
/// "FFFFFFFFFFFFFFFF"
/// Maximum Length GUID = 37
/// "00000000-0000-0000-0000-000000000000"
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
index 15b16a237..46c5c058f 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);
}
/**
diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
index 5dd099876..25fcc8293 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);
}
/**
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
index 707ec5d05..592663a86 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
@@ -22,7 +22,7 @@ EFI_EVENT mEfiVirtualNotifyEvent;
EFI_EVENT mEfiExitBootServicesEvent;
BOOLEAN mEfiGoneVirtual = FALSE;
BOOLEAN mEfiAtRuntime = FALSE;
-EFI_RUNTIME_SERVICES *mRT;
+EFI_RUNTIME_SERVICES *mRT;
/**
Set AtRuntime flag as TRUE after ExitBootServices.
@@ -69,7 +69,7 @@ RuntimeLibVirtualNotifyEvent (
}
/**
- Intialize runtime Driver Lib if it has not yet been initialized.
+ Initialize runtime Driver Lib if it has not yet been initialized.
It will ASSERT() if gRT is NULL or gBS is NULL.
It will ASSERT() if that operation fails.