diff options
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d8448f4fc0f..65a3a62cf67 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2585,10 +2585,7 @@ dri2_client_wait_sync(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync, ret = cnd_wait(&dri2_sync->cond, &dri2_sync->mutex); - if (mtx_unlock(&dri2_sync->mutex)) { - ret = EGL_FALSE; - goto cleanup; - } + mtx_unlock(&dri2_sync->mutex); if (ret) { _eglError(EGL_BAD_PARAMETER, "eglClientWaitSyncKHR"); @@ -2619,10 +2616,7 @@ dri2_client_wait_sync(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync, ret = cnd_timedwait(&dri2_sync->cond, &dri2_sync->mutex, &expire); - if (mtx_unlock(&dri2_sync->mutex)) { - ret = EGL_FALSE; - goto cleanup; - } + mtx_unlock(&dri2_sync->mutex); if (ret) if (ret == thrd_busy) { |