Skip to content

Commit 48e6637

Browse files
mchehabehristev
authored andcommitted
media: ov7740: remove an unused var
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>
1 parent 9e3101d commit 48e6637

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/i2c/ov7740.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static int ov7740_get_register(struct v4l2_subdev *sd,
279279
reg->val = val;
280280
reg->size = 1;
281281

282-
return 0;
282+
return ret;
283283
}
284284

285285
static int ov7740_set_register(struct v4l2_subdev *sd,

0 commit comments

Comments
 (0)