summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Event/event.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-09 07:52:58 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-09 07:52:58 +0000
commit71f68914fa2e7c0b661fcf11a09362b7f9564eb9 (patch)
tree301001c101eba9282db6eb94d337b1803f0a6ecb /MdeModulePkg/Core/Dxe/Event/event.c
parent162ed594438ab8d39f89b43e6d645ca24e1e1e65 (diff)
downloadedk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.zip
edk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.tar.gz
edk2-71f68914fa2e7c0b661fcf11a09362b7f9564eb9.tar.bz2
Fix the prediction warnings in DxeMain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5190 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Event/event.c')
-rw-r--r--MdeModulePkg/Core/Dxe/Event/event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/Event/event.c b/MdeModulePkg/Core/Dxe/Event/event.c
index f5ffbb7..834ace5 100644
--- a/MdeModulePkg/Core/Dxe/Event/event.c
+++ b/MdeModulePkg/Core/Dxe/Event/event.c
@@ -358,7 +358,7 @@ CoreCreateEventEx (
//
// If it's a notify type of event, check its parameters
//
- if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL))) {
+ if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL)) != 0) {
//
// Check for an invalid NotifyFunction or NotifyTpl
//
@@ -381,7 +381,7 @@ CoreCreateEventEx (
// Allcoate and initialize a new event structure.
//
Status = CoreAllocatePool (
- (Type & EVT_RUNTIME) ? EfiRuntimeServicesData: EfiBootServicesData,
+ ((Type & EVT_RUNTIME) != 0) ? EfiRuntimeServicesData: EfiBootServicesData,
sizeof (IEVENT),
(VOID **)&IEvent
);
@@ -404,7 +404,7 @@ CoreCreateEventEx (
*Event = IEvent;
- if (Type & EVT_RUNTIME) {
+ if ((Type & EVT_RUNTIME) != 0) {
//
// Keep a list of all RT events so we can tell the RT AP.
//