summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Event
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-21 03:11:47 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-21 03:11:47 +0000
commit6e53646837da984d2f5dd64467ba7a8943b459ae (patch)
treebf311f263508638bc043cb2277b554d0877829aa /MdeModulePkg/Core/Dxe/Event
parent47b702c65081d08ead70fc6e5e0807c5ac470dc9 (diff)
downloadedk2-6e53646837da984d2f5dd64467ba7a8943b459ae.zip
edk2-6e53646837da984d2f5dd64467ba7a8943b459ae.tar.gz
edk2-6e53646837da984d2f5dd64467ba7a8943b459ae.tar.bz2
Fix several coding style violations
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6163 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Event')
-rw-r--r--MdeModulePkg/Core/Dxe/Event/Event.c12
-rw-r--r--MdeModulePkg/Core/Dxe/Event/Timer.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/MdeModulePkg/Core/Dxe/Event/Event.c b/MdeModulePkg/Core/Dxe/Event/Event.c
index 204e9b3..b2a3459 100644
--- a/MdeModulePkg/Core/Dxe/Event/Event.c
+++ b/MdeModulePkg/Core/Dxe/Event/Event.c
@@ -172,7 +172,7 @@ CoreDispatchEventNotifies (
// Only clear the SIGNAL status if it is a SIGNAL type event.
// WAIT type events are only cleared in CheckEvent()
//
- if (Event->Type & EVT_NOTIFY_SIGNAL) {
+ if ((Event->Type & EVT_NOTIFY_SIGNAL) != 0) {
Event->SignalCount = 0;
}
@@ -496,7 +496,7 @@ CoreSignalEvent (
//
// If signalling type is a notify function, queue it
//
- if (Event->Type & EVT_NOTIFY_SIGNAL) {
+ if ((Event->Type & EVT_NOTIFY_SIGNAL) != 0) {
if (Event->ExFlag) {
//
// The CreateEventEx() style requires all members of the Event Group
@@ -552,13 +552,13 @@ CoreCheckEvent (
Status = EFI_NOT_READY;
- if (!Event->SignalCount && (Event->Type & EVT_NOTIFY_WAIT)) {
+ if ((Event->SignalCount == 0) && ((Event->Type & EVT_NOTIFY_WAIT) != 0)) {
//
// Queue the wait notify function
//
CoreAcquireEventLock ();
- if (!Event->SignalCount) {
+ if (Event->SignalCount == 0) {
CoreNotifyEvent (Event);
}
CoreReleaseEventLock ();
@@ -568,10 +568,10 @@ CoreCheckEvent (
// If the even looks signalled, get the lock and clear it
//
- if (Event->SignalCount) {
+ if (Event->SignalCount != 0) {
CoreAcquireEventLock ();
- if (Event->SignalCount) {
+ if (Event->SignalCount != 0) {
Event->SignalCount = 0;
Status = EFI_SUCCESS;
}
diff --git a/MdeModulePkg/Core/Dxe/Event/Timer.c b/MdeModulePkg/Core/Dxe/Event/Timer.c
index eefd5a7..d0ca1fc 100644
--- a/MdeModulePkg/Core/Dxe/Event/Timer.c
+++ b/MdeModulePkg/Core/Dxe/Event/Timer.c
@@ -260,7 +260,7 @@ CoreSetTimer (
return EFI_INVALID_PARAMETER;
}
- if (Type < 0 || Type > TimerRelative || !(Event->Type & EVT_TIMER)) {
+ if (Type < 0 || Type > TimerRelative || (Event->Type & EVT_TIMER) == 0) {
return EFI_INVALID_PARAMETER;
}