media: atomisp: remove redundant initialization of variable ret
Subsystems (5)
Media (V4L/DVB) Staging Kernel janitors Intel MID (Mobile Internet Device) platform +1 more subsystems
PATCH 1/1 media: atomisp: remove redundant initialization of variable ret
From: Colin Ian King <[email protected]>
The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c +1 -1
@@ -932,7 +932,7 @@ static int ov5693_q_exposure(struct v4l2_subdev *sd, s32 *value)static int ad5823_t_focus_vcm (struct v4l2_subdev *sd,u16 val) {struct i2c_client *client =v4l2_get_subdevdata (sd); -int ret = -EINVAL ; +int ret;u8 vcm_code; ret =ad5823_i2c_read (client,AD5823_REG_VCM_CODE_MSB , &vcm_code);
Signature · 1 line
2.31.1
Quoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
Acked-by Sakari Ailus <[email protected]>
Signature · 1 line
Sakari Ailus