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

Commit 22796b77 authored by Pankaj Gupta's avatar Pankaj Gupta
Browse files

msm: kgsl: Remove unnecessary else block



Updated gmu_core_scales_bandwidth() to remove unused
condition. Else is not generally useful after a return.

Change-Id: I920039725aa52af44589c0caf40ace7ef680354c
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent eca47d45
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -101,15 +101,14 @@ bool gmu_core_gpmu_isenabled(struct kgsl_device *device)

bool gmu_core_scales_bandwidth(struct kgsl_device *device)
{
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);

	if (device->gmu_core.type == GMU_CORE_TYPE_PCC)
		return false;
	else {
		struct adreno_device *adreno_dev = ADRENO_DEVICE(device);

	return gmu_core_gpmu_isenabled(device) &&
		   (ADRENO_GPUREV(adreno_dev) >= ADRENO_REV_A640);
}
}

int gmu_core_start(struct kgsl_device *device)
{