media: gspca: remove redundant assignment to variable status
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Apr 2020 14:18:13 +0000 (16:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 11:25:33 +0000 (13:25 +0200)
The variable status is being assigned a value that is never read.
The assignment 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/gspca/mr97310a.c

index 502fc2e..464aa61 100644 (file)
@@ -287,7 +287,6 @@ static int zero_the_pointer(struct gspca_dev *gspca_dev)
                        return err_code;
 
                err_code = cam_get_response16(gspca_dev, 0x21, 0);
-               status = data[0];
                tries++;
                if (err_code < 0)
                        return err_code;