From 4308d331f46450febdf04b3cacd01d3c6d683f27 Mon Sep 17 00:00:00 2001 From: Runmin Wang Date: Wed, 3 Aug 2016 13:57:47 -0700 Subject: [PATCH] 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: Runmin Wang --- drivers/soc/qcom/gladiator_erp_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/gladiator_erp_v2.c b/drivers/soc/qcom/gladiator_erp_v2.c index 20bb97f1fb16..25c7bd77ae96 100644 --- a/drivers/soc/qcom/gladiator_erp_v2.c +++ b/drivers/soc/qcom/gladiator_erp_v2.c @@ -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,