Clean up semaphore initialisation.

This commit is contained in:
skrll 2013-09-20 09:05:53 +00:00
parent b0eb4d7e9b
commit 52b375a163
1 changed files with 1 additions and 5 deletions

View File

@ -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);