From: Colin Ian King Date: Fri, 11 Oct 2019 18:57:46 +0000 (-0300) Subject: media: gspca: remove redundant assignment to variable ret X-Git-Tag: v5.5-rc1~143^2^2~158 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9b950ce05732ac103023c2a1a3b81778f4c06e2f;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/stv0680.c b/drivers/media/usb/gspca/stv0680.c index f869eb6065ce2..b23988d8c7bcb 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;