/**\r
Initializes "event" support and populates parts of the System and Runtime Table.\r
\r
-\r
@retval EFI_SUCCESS Always return success\r
\r
**/\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- SetMem (IEvent, sizeof (IEVENT), 0);\r
+ ZeroMem (IEvent, sizeof (IEVENT));\r
\r
IEvent->Signature = EVENT_SIGNATURE;\r
IEvent->Type = Type;\r
\r
\r
/**\r
- Signals the event. Queues the event to be notified if needed\r
+ Signals the event. Queues the event to be notified if needed.\r
\r
- @param UserEvent The event to signal \r
+ @param UserEvent The event to signal .\r
\r
@retval EFI_INVALID_PARAMETER Parameters are not valid. \r
@retval EFI_SUCCESS The event was signaled.\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- if (Event->Type & EVT_NOTIFY_SIGNAL) {\r
+ if ((Event->Type & EVT_NOTIFY_SIGNAL) != 0) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
//\r
// Queue the wait notify function\r
//\r
-\r
CoreAcquireEventLock ();\r
if (!Event->SignalCount) {\r
CoreNotifyEvent (Event);\r
\r
\r
\r
-\r
/**\r
Stops execution until an event is signaled.\r
\r
}\r
\r
\r
-\r
/**\r
Closes an event and frees the event structure.\r
\r
//\r
// If it's a timer event, make sure it's not pending\r
//\r
- if (Event->Type & EVT_TIMER) {\r
+ if ((Event->Type & EVT_TIMER) != 0) {\r
CoreSetTimer (Event, TimerCancel, 0);\r
}\r
\r