diff options
author | Colin Ian King <[email protected]> | 2020-07-01 15:56:52 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-19 07:44:37 +0200 |
commit | 77d7ceb1a14616af8877c77674c8a17ed45fce85 (patch) | |
tree | 04b43b3546a25ca4a6d2ec14edfff2f1fa17d9d3 | |
parent | a69a7a33268308ddcc9abf0f7d7cd61ec4300cbe (diff) |
media: gspca: remove redundant initialization of variable status
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]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/usb/gspca/sn9c2028.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/sn9c2028.c b/drivers/media/usb/gspca/sn9c2028.c index aff01b753853..dbd1d6da37f1 100644 --- a/drivers/media/usb/gspca/sn9c2028.c +++ b/drivers/media/usb/gspca/sn9c2028.c @@ -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); |