drm/rcar-du: Don't cast crtc to rcrtc twice in the same function
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 Nov 2013 13:38:03 +0000 (14:38 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 2 Dec 2013 00:27:25 +0000 (01:27 +0100)
Reuse the previously cast variable instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c

index a9d24e4bf79280c90991c155634c0ca8bd87c1d9..d2af2bcf3eae621447630108e1eeb63e422d7009 100644 (file)
@@ -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;
 }