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

Commit d2077209 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Initialize the return value for adreno_regulator_enable



In the case where the regulator is not already enabled an undefined
value will be returned. Initialize the return value for
adreno_regulator_enable.

Change-Id: If481b631bc5e785c156413a4f74aeacc23ab601a
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 7d790935
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2624,7 +2624,7 @@ static unsigned int adreno_gpuid(struct kgsl_device *device,

static int adreno_regulator_enable(struct kgsl_device *device)
{
	int ret;
	int ret = 0;
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct adreno_gpudev *gpudev  = ADRENO_GPU_DEVICE(adreno_dev);
	if (gpudev->regulator_enable &&