Skip to content

Commit

Permalink
drm/rcar-du: Don't ignore rcar_du_crtc_create() return value
Browse files Browse the repository at this point in the history
Handle error cases correctly.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Laurent Pinchart authored and Dave Airlie committed Jul 5, 2013
1 parent 7c6ca30 commit 3463ff6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/gpu/drm/rcar-du/rcar_du_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu)
if (ret < 0)
return ret;

for (i = 0; i < ARRAY_SIZE(rcdu->crtcs); ++i)
rcar_du_crtc_create(rcdu, i);
for (i = 0; i < ARRAY_SIZE(rcdu->crtcs); ++i) {
ret = rcar_du_crtc_create(rcdu, i);
if (ret < 0)
return ret;
}

rcdu->used_crtcs = 0;
rcdu->num_crtcs = i;
Expand Down

0 comments on commit 3463ff6

Please sign in to comment.