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

Commit 4308d331 authored by Runmin Wang's avatar Runmin Wang
Browse files

soc: qcom: gladiator_erp_v2: initialize return value



Initialize the return value before it is used in the driver to
make sure valid return value is returned.

CRs-Fixed: 1050136
Change-Id: I3e2c524ac87d57ae33cd0f28b9c62b2a39ee79ad
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent cc915a39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -758,7 +758,7 @@ static int gladiator_erp_pm_callback(struct notifier_block *nb,

static int gladiator_erp_v2_probe(struct platform_device *pdev)
{
	int ret;
	int ret = -1;
	struct msm_gladiator_data *msm_gld_data;

	msm_gld_data = devm_kzalloc(&pdev->dev,