Commit f5abcc46 authored by Laurent Pinchart's avatar Laurent Pinchart

drm/rcar-du: Don't cast crtc to rcrtc twice in the same function

Reuse the previously cast variable instead.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent c8ca9d6a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment