mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[media] gspca_stv06xx: remove redundant check for err < 0
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
676c002af6
commit
c099b73a29
1 changed files with 0 additions and 3 deletions
|
|
@ -116,9 +116,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue