Commit ea3e24ca authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp-gc2235: drop an unused var

Fix this clang Werror with W=1:

drivers/staging/media/atomisp/i2c/atomisp-gc2235.c:573:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable]
        int ret = -1;
            ^
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 652af08a
...@@ -570,14 +570,16 @@ static int power_ctrl(struct v4l2_subdev *sd, bool flag) ...@@ -570,14 +570,16 @@ static int power_ctrl(struct v4l2_subdev *sd, bool flag)
static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) static int gpio_ctrl(struct v4l2_subdev *sd, bool flag)
{ {
struct gc2235_device *dev = to_gc2235_sensor(sd); struct gc2235_device *dev = to_gc2235_sensor(sd);
int ret = -1; int ret;
if (!dev || !dev->platform_data) if (!dev || !dev->platform_data)
return -ENODEV; return -ENODEV;
ret |= dev->platform_data->gpio1_ctrl(sd, !flag); ret = dev->platform_data->gpio1_ctrl(sd, !flag);
usleep_range(60, 90); usleep_range(60, 90);
return dev->platform_data->gpio0_ctrl(sd, flag); ret |= dev->platform_data->gpio0_ctrl(sd, flag);
return ret;
} }
static int power_up(struct v4l2_subdev *sd) static int power_up(struct v4l2_subdev *sd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment