From 86fed469ec1ea5f618b7bdaec2c18f736ac44151 Mon Sep 17 00:00:00 2001 From: Johann Date: Tue, 31 Jan 2017 15:40:58 -0800 Subject: [PATCH] vp8_dx_iface: remove unused 'else' condition Clears up static clang analysis warning regarding a dead store. Change-Id: If4fe7a9a7f94c6e2001d46136944f90712e543b4 --- vp8/vp8_dx_iface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index dad29ad4a..9ea9c7f04 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c @@ -80,7 +80,6 @@ static int vp8_init_ctx(vpx_codec_ctx_t *ctx) { static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx, vpx_codec_priv_enc_mr_cfg_t *data) { vpx_codec_err_t res = VPX_CODEC_OK; - vpx_codec_alg_priv_t *priv = NULL; (void)data; vp8_rtcd(); @@ -92,7 +91,10 @@ static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx, * information becomes known. */ if (!ctx->priv) { + vpx_codec_alg_priv_t *priv; + if (vp8_init_ctx(ctx)) return VPX_CODEC_MEM_ERROR; + priv = (vpx_codec_alg_priv_t *)ctx->priv; /* initialize number of fragments to zero */ @@ -102,8 +104,6 @@ static vpx_codec_err_t vp8_init(vpx_codec_ctx_t *ctx, (priv->base.init_flags & VPX_CODEC_USE_INPUT_FRAGMENTS); /*post processing level initialized to do nothing */ - } else { - priv = (vpx_codec_alg_priv_t *)ctx->priv; } return res; -- 2.50.1