Commit d682869d authored by Zeng Jingxiang's avatar Zeng Jingxiang Committed by Mauro Carvalho Chehab

media: tm6000: Fix unused value in vidioc_try_fmt_vid_cap()

Coverity warns of an unused value:

assigned_value: Assign the value of the variable f->fmt.pix.field
to field here,  but that stored value is overwritten.
before it can be used.
919	field = f->fmt.pix.field;
920

value_overwrite: Overwriting previous write to field with
the value of V4L2_FIELD_INTERLACED.
921	field = V4L2_FIELD_INTERLACED;

Fixes: ed57256f ("[media] tm6000: fix G/TRY_FMT")
Signed-off-by: default avatarZeng Jingxiang <linuszeng@tencent.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 2b064d91
......@@ -916,8 +916,6 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
return -EINVAL;
}
field = f->fmt.pix.field;
field = V4L2_FIELD_INTERLACED;
tm6000_get_std_res(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment