summaryrefslogtreecommitdiff
path: root/drivers/media/video/ov5642.c
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2012-03-30 12:41:27 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-11 04:31:19 +0400
commite879b7f34e18cd886754069e988587a5618c73f0 (patch)
treece94d7d785d8a6d2715d9714f28a43d463e3e3df /drivers/media/video/ov5642.c
parentf4d4e7656b26a6013bc5072c946920d2e2c44e8e (diff)
downloadlinux-e879b7f34e18cd886754069e988587a5618c73f0.tar.xz
[media] V4L: OV5642:remove redundant code to set cropping w/h
This patch contains code change only to remove redundant code to set priv->crop_rect.width/height in probe function. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Acked-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov5642.c')
-rw-r--r--drivers/media/video/ov5642.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/ov5642.c b/drivers/media/video/ov5642.c
index 80e07794ac8e..0bc93313d37a 100644
--- a/drivers/media/video/ov5642.c
+++ b/drivers/media/video/ov5642.c
@@ -1025,8 +1025,6 @@ static int ov5642_probe(struct i2c_client *client,
priv->crop_rect.height = OV5642_DEFAULT_HEIGHT;
priv->crop_rect.left = (OV5642_MAX_WIDTH - OV5642_DEFAULT_WIDTH) / 2;
priv->crop_rect.top = (OV5642_MAX_HEIGHT - OV5642_DEFAULT_HEIGHT) / 2;
- priv->crop_rect.width = OV5642_DEFAULT_WIDTH;
- priv->crop_rect.height = OV5642_DEFAULT_HEIGHT;
priv->total_width = OV5642_DEFAULT_WIDTH + BLANKING_EXTRA_WIDTH;
priv->total_height = BLANKING_MIN_HEIGHT;