Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Mauro Carvalho Chehab
4eb48aca 637959f7

-2
-2
drivers/media/usb/s2255/s2255drv.c
··· 767 767 if (fmt == NULL) 768 768 return -EINVAL; 769 769 770 - field = f->fmt.pix.field; 771 - 772 770 dprintk(vc->dev, 50, "%s NTSC: %d suggested width: %d, height: %d\n", 773 771 __func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height); 774 772 if (is_ntsc) {