Skip to content

Commit

Permalink
drm/gma500: Code cleanup - removal of centralized exiting of function
Browse files Browse the repository at this point in the history
Removed centralized exiting of function (goto statement), since it was
the only used in one single location with only a return statement.

Signed-off-by: Arthur Borsboom <arthurborsboom@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
  • Loading branch information
Arthur Borsboom authored and Patrik Jakobsson committed Mar 17, 2014
1 parent e85cbbf commit af3765c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpu/drm/gma500/psb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ static int psb_do_init(struct drm_device *dev)

uint32_t stolen_gtt;

int ret = -ENOMEM;

if (pg->mmu_gatt_start & 0x0FFFFFFF) {
dev_err(dev->dev, "Gatt must be 256M aligned. This is a bug.\n");
ret = -EINVAL;
goto out_err;
return -EINVAL;
}


Expand Down Expand Up @@ -149,8 +146,6 @@ static int psb_do_init(struct drm_device *dev)
PSB_RSGX32(PSB_CR_BIF_TWOD_REQ_BASE); /* Post */

return 0;
out_err:
return ret;
}

static int psb_driver_unload(struct drm_device *dev)
Expand Down

0 comments on commit af3765c

Please sign in to comment.