vl_compositor_init_state always return true so we don't need to handle false case
v2: add missing semicolon Signed-off-by: Nayan Deshmukh <nayan26deshm...@gmail.com> --- src/gallium/state_trackers/vdpau/presentation.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/vdpau/presentation.c b/src/gallium/state_trackers/vdpau/presentation.c index f35d73a..c1e1054 100644 --- a/src/gallium/state_trackers/vdpau/presentation.c +++ b/src/gallium/state_trackers/vdpau/presentation.c @@ -66,11 +66,7 @@ vlVdpPresentationQueueCreate(VdpDevice device, pq->drawable = pqt->drawable; pipe_mutex_lock(dev->mutex); - if (!vl_compositor_init_state(&pq->cstate, dev->context)) { - pipe_mutex_unlock(dev->mutex); - ret = VDP_STATUS_ERROR; - goto no_compositor; - } + vl_compositor_init_state(&pq->cstate, dev->context); pipe_mutex_unlock(dev->mutex); *presentation_queue = vlAddDataHTAB(pq); @@ -82,7 +78,6 @@ vlVdpPresentationQueueCreate(VdpDevice device, return VDP_STATUS_OK; no_handle: -no_compositor: DeviceReference(&pq->device, NULL); FREE(pq); return ret; -- 2.9.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev