Clean up semaphore initialisation.
This commit is contained in:
parent
b0eb4d7e9b
commit
52b375a163
|
@ -384,7 +384,7 @@ remote_event_create(REMOTE_EVENT_T *event)
|
|||
event->armed = 0;
|
||||
/* Don't clear the 'fired' flag because it may already have been set
|
||||
** by the other side. */
|
||||
event->event->value = 0;
|
||||
_sema_init(event->event, 0);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
@ -2377,10 +2377,6 @@ vchiq_init_state(VCHIQ_STATE_T *state, VCHIQ_SLOT_ZERO_T *slot_zero,
|
|||
|
||||
_sema_init(&state->connect, 0);
|
||||
lmutex_init(&state->mutex);
|
||||
_sema_init(&state->trigger_event, 0);
|
||||
_sema_init(&state->recycle_event, 0);
|
||||
_sema_init(&state->sync_trigger_event, 0);
|
||||
_sema_init(&state->sync_release_event, 0);
|
||||
|
||||
lmutex_init(&state->slot_mutex);
|
||||
lmutex_init(&state->recycle_mutex);
|
||||
|
|
Loading…
Reference in New Issue