[media] ml86v7667: fix compiler warning
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 20 Jun 2013 19:28:14 +0000 (16:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 28 Jun 2013 18:04:59 +0000 (15:04 -0300)
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>
drivers/media/i2c/ml86v7667.c

index cd9f86e743b24753f841404a4ee4211d32284c53..efdc873e58d122d322d53a3876f88a46f4ddb04f 100644 (file)
@@ -117,7 +117,7 @@ static int ml86v7667_s_ctrl(struct v4l2_ctrl *ctrl)
 {
        struct v4l2_subdev *sd = to_sd(ctrl);
        struct i2c_client *client = v4l2_get_subdevdata(sd);
-       int ret = 0;
+       int ret;
 
        switch (ctrl->id) {
        case V4L2_CID_BRIGHTNESS: