media: media/i2c: remove unneeded variable: "ret"
remove unneeded variable: "ret" Signed-off-by: zuoqilin <zuoqilin@yulong.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
0aa3bdca38
commit
f0b8bbd367
@ -1125,7 +1125,6 @@ static int max2175_g_frequency(struct v4l2_subdev *sd,
|
||||
struct v4l2_frequency *vf)
|
||||
{
|
||||
struct max2175 *ctx = max2175_from_sd(sd);
|
||||
int ret = 0;
|
||||
|
||||
if (vf->tuner != 0)
|
||||
return -EINVAL;
|
||||
@ -1134,7 +1133,7 @@ static int max2175_g_frequency(struct v4l2_subdev *sd,
|
||||
vf->type = V4L2_TUNER_RF;
|
||||
vf->frequency = ctx->freq;
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int max2175_enum_freq_bands(struct v4l2_subdev *sd,
|
||||
|
Loading…
x
Reference in New Issue
Block a user