summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/stv0680.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-11 15:57:46 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-24 18:32:52 -0300
commit9b950ce05732ac103023c2a1a3b81778f4c06e2f (patch)
tree3ecda8626cfec75c76d7c23a9ab52525a5f807ab /drivers/media/usb/gspca/stv0680.c
parent05ff862e0ca5895174c2f28bc10f6dc3495ac0bd (diff)
media: gspca: remove redundant assignment to variable ret
The variable ret is being initialized with a value that is never read and is being re-assigned a little later on. The assignment is redundant and hence 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+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/gspca/stv0680.c')
-rw-r--r--drivers/media/usb/gspca/stv0680.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/stv0680.c b/drivers/media/usb/gspca/stv0680.c
index f869eb6065ce..b23988d8c7bc 100644
--- a/drivers/media/usb/gspca/stv0680.c
+++ b/drivers/media/usb/gspca/stv0680.c
@@ -35,7 +35,7 @@ struct sd {
static int stv_sndctrl(struct gspca_dev *gspca_dev, int set, u8 req, u16 val,
int size)
{
- int ret = -1;
+ int ret;
u8 req_type = 0;
unsigned int pipe = 0;