summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rcar-du
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-11-13 14:38:03 +0100
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-02 01:27:25 +0100
commitf5abcc4674c3aa9d745772bb3fd51db60c93161f (patch)
tree430b8629e50f4abc3de8f68fdaf5b63b36f04c69 /drivers/gpu/drm/rcar-du
parentc8ca9d6aa676b7a26ae9dce6e50222519380e483 (diff)
downloadlinux-f5abcc4674c3aa9d745772bb3fd51db60c93161f.tar.gz
drm/rcar-du: Don't cast crtc to rcrtc twice in the same function
Reuse the previously cast variable instead. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
index a9d24e4bf792..d2af2bcf3eae 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
@@ -413,7 +413,7 @@ static int rcar_du_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
rcrtc->plane->src_x = x;
rcrtc->plane->src_y = y;
- rcar_du_crtc_update_base(to_rcar_crtc(crtc));
+ rcar_du_crtc_update_base(rcrtc);
return 0;
}