media: s2255drv: remove redundant assignment to variable field
The variable 'field' is being assigned a value this is never read, it is being updated in all the following if/else combinations. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
637959f7e2
commit
4eb48acac1
|
@ -767,8 +767,6 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
|
|||
if (fmt == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
field = f->fmt.pix.field;
|
||||
|
||||
dprintk(vc->dev, 50, "%s NTSC: %d suggested width: %d, height: %d\n",
|
||||
__func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height);
|
||||
if (is_ntsc) {
|
||||
|
|
Loading…
Reference in New Issue