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: ed57256f6f ("[media] tm6000: fix G/TRY_FMT")
Signed-off-by: Zeng Jingxiang <linuszeng@tencent.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Zeng Jingxiang 2022-07-28 18:12:36 +08:00 коммит произвёл Mauro Carvalho Chehab
Родитель 2b064d9144
Коммит d682869daa
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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);