summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorColin Ian King2017-03-23 12:57:46 +0100
committerMauro Carvalho Chehab2017-04-10 19:38:40 +0200
commit678bc0adf7aaa0ea6cb7929697e436def5ac0aec (patch)
tree40756ffb20467f0cff51196dbb118813ef0f7669 /drivers/media/platform/coda
parent[media] em28xx: drop last soc_camera link (diff)
downloadkernel-qcow2-linux-678bc0adf7aaa0ea6cb7929697e436def5ac0aec.tar.gz
kernel-qcow2-linux-678bc0adf7aaa0ea6cb7929697e436def5ac0aec.tar.xz
kernel-qcow2-linux-678bc0adf7aaa0ea6cb7929697e436def5ac0aec.zip
[media] coda: remove redundant call to v4l2_m2m_get_vq
The call to v4ls_m2m_get_vq is only used to get the return value which is not being used, so it appears to be redundant and can be removed. Detected with CoverityScan, CID#1420674 ("Useless call") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index 800d2477f1a0..95e4648f18e6 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -817,8 +817,6 @@ static int coda_qbuf(struct file *file, void *priv,
static bool coda_buf_is_end_of_stream(struct coda_ctx *ctx,
struct vb2_v4l2_buffer *buf)
{
- v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
-
return ((ctx->bit_stream_param & CODA_BIT_STREAM_END_FLAG) &&
(buf->sequence == (ctx->qsequence - 1)));
}