Commit f0b8bbd3 authored by zuoqilin's avatar zuoqilin Committed by Mauro Carvalho Chehab

media: media/i2c: remove unneeded variable: "ret"

remove unneeded variable: "ret"
Signed-off-by: default avatarzuoqilin <zuoqilin@yulong.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 0aa3bdca
...@@ -1125,7 +1125,6 @@ static int max2175_g_frequency(struct v4l2_subdev *sd, ...@@ -1125,7 +1125,6 @@ static int max2175_g_frequency(struct v4l2_subdev *sd,
struct v4l2_frequency *vf) struct v4l2_frequency *vf)
{ {
struct max2175 *ctx = max2175_from_sd(sd); struct max2175 *ctx = max2175_from_sd(sd);
int ret = 0;
if (vf->tuner != 0) if (vf->tuner != 0)
return -EINVAL; return -EINVAL;
...@@ -1134,7 +1133,7 @@ static int max2175_g_frequency(struct v4l2_subdev *sd, ...@@ -1134,7 +1133,7 @@ static int max2175_g_frequency(struct v4l2_subdev *sd,
vf->type = V4L2_TUNER_RF; vf->type = V4L2_TUNER_RF;
vf->frequency = ctx->freq; vf->frequency = ctx->freq;
return ret; return 0;
} }
static int max2175_enum_freq_bands(struct v4l2_subdev *sd, static int max2175_enum_freq_bands(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