From e94a9ff7271367e649ee4f9a86da1f1bea6d112e Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 18 Jul 2008 09:50:09 +0000 Subject: Code scrub for DxeCore git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5520 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Event/Event.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 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 5e0b9c70ab..1f458a402a 100644 --- a/MdeModulePkg/Core/Dxe/Event/Event.c +++ b/MdeModulePkg/Core/Dxe/Event/Event.c @@ -92,7 +92,6 @@ CoreReleaseEventLock ( /** Initializes "event" support and populates parts of the System and Runtime Table. - @retval EFI_SUCCESS Always return success **/ @@ -385,7 +384,7 @@ CoreCreateEventEx ( return EFI_OUT_OF_RESOURCES; } - SetMem (IEvent, sizeof (IEVENT), 0); + ZeroMem (IEvent, sizeof (IEVENT)); IEvent->Signature = EVENT_SIGNATURE; IEvent->Type = Type; @@ -433,9 +432,9 @@ CoreCreateEventEx ( /** - Signals the event. Queues the event to be notified if needed + Signals the event. Queues the event to be notified if needed. - @param UserEvent The event to signal + @param UserEvent The event to signal . @retval EFI_INVALID_PARAMETER Parameters are not valid. @retval EFI_SUCCESS The event was signaled. @@ -521,7 +520,7 @@ CoreCheckEvent ( return EFI_INVALID_PARAMETER; } - if (Event->Type & EVT_NOTIFY_SIGNAL) { + if ((Event->Type & EVT_NOTIFY_SIGNAL) != 0) { return EFI_INVALID_PARAMETER; } @@ -532,7 +531,6 @@ CoreCheckEvent ( // // Queue the wait notify function // - CoreAcquireEventLock (); if (!Event->SignalCount) { CoreNotifyEvent (Event); @@ -560,7 +558,6 @@ CoreCheckEvent ( - /** Stops execution until an event is signaled. @@ -616,7 +613,6 @@ CoreWaitForEvent ( } - /** Closes an event and frees the event structure. @@ -648,7 +644,7 @@ CoreCloseEvent ( // // If it's a timer event, make sure it's not pending // - if (Event->Type & EVT_TIMER) { + if ((Event->Type & EVT_TIMER) != 0) { CoreSetTimer (Event, TimerCancel, 0); } -- cgit v1.2.3