Skip to contentSkip to conversation

V4L/DVB: OMAP_VOUT: Remove unneseccasry code in omap_vout_calculate_offset

PATCH New Archit Taneja 1 participant 1 message Sep 1, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 V4L/DVB: OMAP_VOUT: Remove unneseccasry code in omap_vout_calculate_offset

In omap_vout_calculate_offset(), cur_display is assigned ovl->manager->device, but isn't used for anything. The corresponding code is removed.

---
 drivers/media/video/omap/omap_vout.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
drivers/media/video/omap/omap_vout.c +0 -8
index 929073e..255cd99
@@ -506,11 +506,9 @@ static int v4l2_rot_to_dss_rot(int v4l2_rotation,
  */
 static int omap_vout_calculate_offset(struct omap_vout_device *vout)
 {
-	struct omap_overlay *ovl;
 	enum dss_rotation rotation;
 	struct omapvideo_info *ovid;
 	bool mirroring = vout->mirror;
-	struct omap_dss_device *cur_display;
 	struct v4l2_rect *crop = &vout->crop;
 	struct v4l2_pix_format *pix = &vout->pix;
 	int *cropped_offset = &vout->cropped_offset;
@@ -518,12 +516,6 @@ static int omap_vout_calculate_offset(struct omap_vout_device *vout)
 	int offset = 0, ctop = 0, cleft = 0, line_length = 0;
 
 	ovid = &vout->vid_info;
-	ovl = ovid->overlays[0];
-	/* get the display device attached to the overlay */
-	if (!ovl->manager || !ovl->manager->device)
-		return -1;
-
-	cur_display = ovl->manager->device;
 	rotation = calc_rotation(vout);
 
 	if (V4L2_PIX_FMT_YUYV == pix->pixelformat ||
Signature · 1 line
1.7.0.4