[Mesa-dev] [PATCH 4/4] st/xvmc: remove dead code

Nayan Deshmukh nayan26deshmukh at gmail.com
Thu Dec 15 13:34:14 UTC 2016


vl_compositor_init_state always return true so we don't
need to handle false case

Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>
---
 src/gallium/state_trackers/xvmc/context.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/gallium/state_trackers/xvmc/context.c b/src/gallium/state_trackers/xvmc/context.c
index 469e1c1..4ae7d7b 100644
--- a/src/gallium/state_trackers/xvmc/context.c
+++ b/src/gallium/state_trackers/xvmc/context.c
@@ -262,11 +262,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
       goto no_compositor;
    }
 
-   if (!vl_compositor_init_state(&context_priv->cstate, pipe)) {
-      XVMC_MSG(XVMC_ERR, "[XvMC] Could not create VL compositor state.\n");
-      goto no_compositor_state;
-   }
-
+   vl_compositor_init_state(&context_priv->cstate, pipe)
 
    context_priv->color_standard =
       debug_get_bool_option("G3DVL_NO_CSC", FALSE) ?
@@ -299,8 +295,6 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
 
    return Success;
 
-no_compositor_state:
-   vl_compositor_cleanup(&context_priv->compositor);
 no_compositor:
    context_priv->decoder->destroy(context_priv->decoder);
 no_decoder:
-- 
2.9.3



More information about the mesa-dev mailing list