From 52b375a163673d08622686d2bf9441f07de76ea2 Mon Sep 17 00:00:00 2001 From: skrll Date: Fri, 20 Sep 2013 09:05:53 +0000 Subject: [PATCH] Clean up semaphore initialisation. --- .../bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c index 63f4ccad637f..faa8bf953f78 100644 --- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c +++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c @@ -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);