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

Commit af3765c7 authored by Arthur Borsboom's avatar Arthur Borsboom Committed by Patrik Jakobsson
Browse files

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: default avatarArthur Borsboom <arthurborsboom@gmail.com>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
parent e85cbbf9
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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;
	}


@@ -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)