media: gspca: remove redundant initialization of variable status
Subsystems (3)
PATCH 1/1 media: gspca: remove redundant initialization of variable status
From: Colin Ian King <[email protected]>
The variable status 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 <[email protected]>
--- drivers/media/usb/gspca/sn9c2028.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/gspca/sn9c2028.c +1 -1
@@ -215,7 +215,7 @@ static int sd_config(struct gspca_dev *gspca_dev,/* this function is called at probe and resume time */ static int sd_init (struct gspca_dev *gspca_dev) { -int status =-1 ; +int status;sn9c2028_read1 (gspca_dev);sn9c2028_read1 (gspca_dev);
Signature · 1 line
2.27.0