@@ -548,7 +548,7 @@ static int is_init;
static int power_ctrl(struct v4l2_subdev *sd, bool flag)
{
- int ret = -1;
+ int ret;
struct gc2235_device *dev = to_gc2235_sensor(sd);
if (!dev || !dev->platform_data)
@@ -673,7 +673,7 @@ static int power_ctrl(struct v4l2_subdev *sd, bool flag)
static int gpio_ctrl(struct v4l2_subdev *sd, bool flag)
{
struct ov2722_device *dev = to_ov2722_sensor(sd);
- int ret = -1;
+ int ret;
if (!dev || !dev->platform_data)
return -ENODEV;
@@ -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);
@@ -6259,7 +6259,7 @@ allocate_delay_frames(struct ia_css_pipe *pipe) {
unsigned int dvs_frame_delay = 0;
struct ia_css_frame_info ref_info;
int err = 0;
- enum ia_css_pipe_id mode = IA_CSS_PIPE_ID_VIDEO;
+ enum ia_css_pipe_id mode;
struct ia_css_frame **delay_frames = NULL;
IA_CSS_ENTER_PRIVATE("");
@@ -8764,7 +8764,7 @@ int
ia_css_pipe_create_extra(const struct ia_css_pipe_config *config,
const struct ia_css_pipe_extra_config *extra_config,
struct ia_css_pipe **pipe) {
- int err = -EINVAL;
+ int err;
struct ia_css_pipe *internal_pipe = NULL;
unsigned int i;
@@ -3225,7 +3225,7 @@ sh_css_param_update_isp_params(struct ia_css_pipe *curr_pipe,
int err = 0;
ia_css_ptr cpy;
int i;
- unsigned int raw_bit_depth = 10;
+ unsigned int raw_bit_depth;
unsigned int isp_pipe_version = SH_CSS_ISP_PIPE_VERSION_1;
bool acc_cluster_params_changed = false;
unsigned int thread_id, pipe_num;