summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-09-01 08:59:20 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-11 08:39:00 -0400
commit703fe34bac0c9335d019f15c877cdb179971ddeb (patch)
treec790a99f1dbb18443cdb06d44a79299479d8d093
parente9355a7a6584882fa25c471898fdb49c22c9912c (diff)
downloadlinux-703fe34bac0c9335d019f15c877cdb179971ddeb.tar.gz
linux-703fe34bac0c9335d019f15c877cdb179971ddeb.tar.bz2
linux-703fe34bac0c9335d019f15c877cdb179971ddeb.zip
media: vicodec: fix sparse warning
drivers/media/platform/vicodec/vicodec-core.c:160:25: warning: variable 'q_out' set but not used [-Wunused-but-set-variable] It's indeed not used, and it can be removed. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/platform/vicodec/vicodec-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c
index 47e9ad0941ab..11385d44e500 100644
--- a/drivers/media/platform/vicodec/vicodec-core.c
+++ b/drivers/media/platform/vicodec/vicodec-core.c
@@ -157,12 +157,11 @@ static int device_process(struct vicodec_ctx *ctx,
struct vb2_v4l2_buffer *out_vb)
{
struct vicodec_dev *dev = ctx->dev;
- struct vicodec_q_data *q_out, *q_cap;
+ struct vicodec_q_data *q_cap;
struct v4l2_fwht_state *state = &ctx->state;
u8 *p_in, *p_out;
int ret;
- q_out = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
q_cap = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE);
if (ctx->is_enc)
p_in = vb2_plane_vaddr(&in_vb->vb2_buf, 0);