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

[media] ml86v7667: fix compiler warning

build/media_build/v4l/ml86v7667.c: In function 'ml86v7667_s_ctrl':
build/media_build/v4l/ml86v7667.c:120:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret = 0;
^

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Vladimir Barinov <source@cogentembedded.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
2641ff99 79275a99

+1 -1
+1 -1
drivers/media/i2c/ml86v7667.c
··· 117 117 { 118 118 struct v4l2_subdev *sd = to_sd(ctrl); 119 119 struct i2c_client *client = v4l2_get_subdevdata(sd); 120 - int ret = 0; 120 + int ret; 121 121 122 122 switch (ctrl->id) { 123 123 case V4L2_CID_BRIGHTNESS: