]> git.baikalelectronics.ru Git - kernel.git/commit
media: pwc-ctl: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Apr 2020 13:50:14 +0000 (15:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 11:25:18 +0000 (13:25 +0200)
commitf2f1b28d0aaa243aec6985a989ffa7b7bff7e33a
tree2c58714a335bdb06950062a62ef2ea4ee0706d8a
parent93254cc09f520dcae818b16414d4d99e676647a9
media: pwc-ctl: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pwc/pwc-ctrl.c