media: ov7740: remove an unused var
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 13:28:22 +0000 (08:28 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 13:30:08 +0000 (08:30 -0500)
Fix this warning regression:
   drivers/media/i2c/ov7740.c: warning: variable 'ret' set but not used [-Wunused-but-set-variable]:  => 276:6

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov7740.c

index e1a44a18d9a8c8c3980d11edf87f88afef82708b..01f578785e795a7189446bbd11e318dd152cae1f 100644 (file)
@@ -279,7 +279,7 @@ static int ov7740_get_register(struct v4l2_subdev *sd,
        reg->val = val;
        reg->size = 1;
 
-       return 0;
+       return ret;
 }
 
 static int ov7740_set_register(struct v4l2_subdev *sd,