Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5abcc46 authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}