From 6e53646837da984d2f5dd64467ba7a8943b459ae Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 21 Oct 2008 03:11:47 +0000 Subject: Fix several coding style violations git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6163 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Event/Event.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Core/Dxe/Event/Event.c') diff --git a/MdeModulePkg/Core/Dxe/Event/Event.c b/MdeModulePkg/Core/Dxe/Event/Event.c index 204e9b3b70..b2a3459324 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; } -- cgit v1.2.3