Skip to content

Commit

Permalink
drm/rcar-du: Don't cast crtc to rcrtc twice in the same function
Browse files Browse the repository at this point in the history
Reuse the previously cast variable instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
  • Loading branch information
Laurent Pinchart committed Dec 2, 2013
1 parent c8ca9d6 commit f5abcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rcar-du/rcar_du_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f5abcc4

Please sign in to comment.