mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-07 13:13:57 +08:00
drm/gma500: Code cleanup - removal of centralized exiting of function
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>
This commit is contained in:
parent
e85cbbf914
commit
af3765c764
@ -113,12 +113,9 @@ static int psb_do_init(struct drm_device *dev)
|
|||||||
|
|
||||||
uint32_t stolen_gtt;
|
uint32_t stolen_gtt;
|
||||||
|
|
||||||
int ret = -ENOMEM;
|
|
||||||
|
|
||||||
if (pg->mmu_gatt_start & 0x0FFFFFFF) {
|
if (pg->mmu_gatt_start & 0x0FFFFFFF) {
|
||||||
dev_err(dev->dev, "Gatt must be 256M aligned. This is a bug.\n");
|
dev_err(dev->dev, "Gatt must be 256M aligned. This is a bug.\n");
|
||||||
ret = -EINVAL;
|
return -EINVAL;
|
||||||
goto out_err;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,8 +146,6 @@ static int psb_do_init(struct drm_device *dev)
|
|||||||
PSB_RSGX32(PSB_CR_BIF_TWOD_REQ_BASE); /* Post */
|
PSB_RSGX32(PSB_CR_BIF_TWOD_REQ_BASE); /* Post */
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
out_err:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int psb_driver_unload(struct drm_device *dev)
|
static int psb_driver_unload(struct drm_device *dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user