summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/include/pipe/p_atomic.h')
-rw-r--r--src/gallium/include/pipe/p_atomic.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/include/pipe/p_atomic.h b/src/gallium/include/pipe/p_atomic.h
index 348a938e175..773ae983436 100644
--- a/src/gallium/include/pipe/p_atomic.h
+++ b/src/gallium/include/pipe/p_atomic.h
@@ -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);