mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e9355a7a65
commit
703fe34bac
|
@ -157,12 +157,11 @@ static int device_process(struct vicodec_ctx *ctx,
|
||||||
struct vb2_v4l2_buffer *out_vb)
|
struct vb2_v4l2_buffer *out_vb)
|
||||||
{
|
{
|
||||||
struct vicodec_dev *dev = ctx->dev;
|
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;
|
struct v4l2_fwht_state *state = &ctx->state;
|
||||||
u8 *p_in, *p_out;
|
u8 *p_in, *p_out;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
q_out = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
|
|
||||||
q_cap = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE);
|
q_cap = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE);
|
||||||
if (ctx->is_enc)
|
if (ctx->is_enc)
|
||||||
p_in = vb2_plane_vaddr(&in_vb->vb2_buf, 0);
|
p_in = vb2_plane_vaddr(&in_vb->vb2_buf, 0);
|
||||||
|
|
Loading…
Reference in New Issue