gallium: pipe_mutex_init() is of type void.
authorMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 11:36:22 +0000 (12:36 +0100)
committerMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 11:36:22 +0000 (12:36 +0100)
Both the windows and fallback versions are void already.

src/gallium/include/pipe/p_atomic.h
src/gallium/include/pipe/p_thread.h

index 348a938e175e9c12af53bb6d9ed2145bcd60a783..773ae9834368b747598b0bb55b2bd4a25512b187 100644 (file)
@@ -84,10 +84,7 @@ struct pipe_atomic {
 static INLINE void
 p_atomic_set(struct pipe_atomic *v, int32_t i)
 {
-   int ret;
-   ret = pipe_mutex_init(v->mutex);
-   if (ret)
-      abort();
+   pipe_mutex_init(v->mutex);
    pipe_mutex_lock(v->mutex);
    v->count = i;
    pipe_mutex_unlock(v->mutex);
index e59b999b9af38813c581f7deba46a38f3e1ab0f3..e27b37cf9ddf52456439a987675d929b2678693a 100644 (file)
@@ -73,7 +73,7 @@ typedef pthread_cond_t pipe_condvar;
    static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
 
 #define pipe_mutex_init(mutex) \
-   pthread_mutex_init(&(mutex), NULL)
+   (void) pthread_mutex_init(&(mutex), NULL)
 
 #define pipe_mutex_destroy(mutex) \
    pthread_mutex_destroy(&(mutex))