Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

zuoqilin and committed by
Mauro Carvalho Chehab
f0b8bbd3 0aa3bdca

+1 -2
+1 -2
drivers/media/i2c/max2175.c
··· 1125 1125 struct v4l2_frequency *vf) 1126 1126 { 1127 1127 struct max2175 *ctx = max2175_from_sd(sd); 1128 - int ret = 0; 1129 1128 1130 1129 if (vf->tuner != 0) 1131 1130 return -EINVAL; ··· 1133 1134 vf->type = V4L2_TUNER_RF; 1134 1135 vf->frequency = ctx->freq; 1135 1136 1136 - return ret; 1137 + return 0; 1137 1138 } 1138 1139 1139 1140 static int max2175_enum_freq_bands(struct v4l2_subdev *sd,