Commit 8fcccd2f authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: ar0521: Remove redundant variable ret

ret in ar0521_set_fmt is never set to values other than 0. Replace it with
plain 0.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent b5f8fa87
...@@ -406,7 +406,6 @@ static int ar0521_set_fmt(struct v4l2_subdev *sd, ...@@ -406,7 +406,6 @@ static int ar0521_set_fmt(struct v4l2_subdev *sd,
struct v4l2_subdev_format *format) struct v4l2_subdev_format *format)
{ {
struct ar0521_dev *sensor = to_ar0521_dev(sd); struct ar0521_dev *sensor = to_ar0521_dev(sd);
int ret = 0;
ar0521_adj_fmt(&format->format); ar0521_adj_fmt(&format->format);
...@@ -423,7 +422,7 @@ static int ar0521_set_fmt(struct v4l2_subdev *sd, ...@@ -423,7 +422,7 @@ static int ar0521_set_fmt(struct v4l2_subdev *sd,
} }
mutex_unlock(&sensor->lock); mutex_unlock(&sensor->lock);
return ret; return 0;
} }
static int ar0521_s_ctrl(struct v4l2_ctrl *ctrl) static int ar0521_s_ctrl(struct v4l2_ctrl *ctrl)
......
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