diff options
author | zuoqilin | 2021-02-22 14:13:17 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2021-03-11 11:59:43 +0100 |
commit | f0b8bbd367bbd3dd32c28ddcb98801bd94461a5f (patch) | |
tree | 26d5c9f6228af474faeb416ad717a697b250e75e /drivers/media/i2c | |
parent | 0aa3bdca3850b73623b377aa1da54c29979259a6 (diff) |
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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/max2175.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/max2175.c b/drivers/media/i2c/max2175.c index 661208c9bfc5..bc46a0957b40 100644 --- a/drivers/media/i2c/max2175.c +++ b/drivers/media/i2c/max2175.c @@ -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, |