[media] V4L: OV5642:remove redundant code to set cropping w/h
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 30 Mar 2012 08:41:27 +0000 (05:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Apr 2012 00:31:19 +0000 (21:31 -0300)
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>
drivers/media/video/ov5642.c

index 80e07794ac8ee995aeca66728c127f22d348ed87..0bc93313d37ad1036da74be56a655dd9bbe880ae 100644 (file)
@@ -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;