OSDN Git Service

media: s2255drv: remove redundant assignment to variable field
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Apr 2021 09:15:31 +0000 (11:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 19 May 2021 07:51:39 +0000 (09:51 +0200)
commit4eb48acac1e9fef09fde3079e4b2e30dc7cf2b35
tree3522170d24393a90b61716cd8a85d5c502fbdd35
parent637959f7e273a83934c9d3c6a50af529fb46cbb6
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>
drivers/media/usb/s2255/s2255drv.c