diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-21 03:11:47 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-21 03:11:47 +0000 |
commit | 6e53646837da984d2f5dd64467ba7a8943b459ae (patch) | |
tree | bf311f263508638bc043cb2277b554d0877829aa /MdeModulePkg/Core/Dxe/Event/Event.c | |
parent | 47b702c65081d08ead70fc6e5e0807c5ac470dc9 (diff) | |
download | edk2-platforms-6e53646837da984d2f5dd64467ba7a8943b459ae.tar.xz |
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/Event.c')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Event/Event.c | 12 |
1 files changed, 6 insertions, 6 deletions
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;
}
|