aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Roszak <[email protected]>2023-01-23 08:17:08 +0100
committerMauro Carvalho Chehab <[email protected]>2023-02-08 09:03:03 +0100
commit4ab3f69cba785988b7cb386e35e661bfa1aa0706 (patch)
treec9ce9aecfc620c96cf09a47b15ec459f6b4bbb68
parentebad8e731c1c06adf04621d6fd327b860c0861b5 (diff)
media: meson: vdec: remove redundant if statement
Checking if sess->fmt_out->pixfmt is V4L2_PIX_FMT_VP9 was already done as a condition to enter the if statement where this additional check is made. Signed-off-by: Benjamin Roszak <[email protected]> Signed-off-by: Christian Hewitt <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/staging/media/meson/vdec/esparser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/meson/vdec/esparser.c b/drivers/staging/media/meson/vdec/esparser.c
index 86ccc8937afc..7b15fc54efe4 100644
--- a/drivers/staging/media/meson/vdec/esparser.c
+++ b/drivers/staging/media/meson/vdec/esparser.c
@@ -314,8 +314,7 @@ esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf)
num_dst_bufs = codec_ops->num_pending_bufs(sess);
num_dst_bufs += v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx);
- if (sess->fmt_out->pixfmt == V4L2_PIX_FMT_VP9)
- num_dst_bufs -= 3;
+ num_dst_bufs -= 3;
if (esparser_vififo_get_free_space(sess) < payload_size ||
atomic_read(&sess->esparser_queued_bufs) >= num_dst_bufs)