Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1556692
| Path | csiph.com!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Colin King <colin.king@canonical.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] [media] gspca_stv06xx: remove redundant check for err < 0 |
| Date | Wed, 11 Jan 2017 17:30:02 +0100 |
| Message-ID | <sYtWG-In-23@gated-at.bofh.it> (permalink) |
| X-Mailer | git-send-email 2.10.2 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | 8bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org |
| X-Original-Date | Wed, 11 Jan 2017 16:24:33 +0000 |
| X-Original-Message-ID | <20170111162433.21208-1-colin.king@canonical.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1556692 |
Show key headers only | View raw
From: Colin Ian King <colin.king@canonical.com>
The comparison of err < 0 is redundant as err has been previously
been assigned to 0 and has not changed. Remove the redundant check.
Fixes CoverityScan CID#703363 ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
index f86cec0..7f1cc56 100644
--- a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
+++ b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
@@ -120,9 +120,6 @@ static int vv6410_init(struct sd *sd)
for (i = 0; i < ARRAY_SIZE(stv_bridge_init); i++)
stv06xx_write_bridge(sd, stv_bridge_init[i].addr, stv_bridge_init[i].data);
- if (err < 0)
- return err;
-
err = stv06xx_write_sensor_bytes(sd, (u8 *) vv6410_sensor_init,
ARRAY_SIZE(vv6410_sensor_init));
return (err < 0) ? err : 0;
--
2.10.2
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] [media] gspca_stv06xx: remove redundant check for err < 0 Colin King <colin.king@canonical.com> - 2017-01-11 17:30 +0100
csiph-web