Skip to content

Commit

Permalink
media: ov7740: remove an unused var
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 26, 2018
1 parent 9f56418 commit 00d9da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/ov7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00d9da5

Please sign in to comment.