[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190404084204.GA20193@kadam>
Date: Thu, 4 Apr 2019 11:42:04 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Andy Gross <andy.gross@...aro.org>
Cc: David Brown <david.brown@...aro.org>,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [PATCH] remoteproc: silence an uninitialized variable warning
Smatch complains that "ret" might be uninitialized. I can see why it
generates the warning, but I don't know if it's actually possible.
Anyway initializing "ret" here is harmless.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
---
drivers/soc/qcom/mdt_loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/mdt_loader.c b/drivers/soc/qcom/mdt_loader.c
index 1c488024c698..fc58d660692f 100644
--- a/drivers/soc/qcom/mdt_loader.c
+++ b/drivers/soc/qcom/mdt_loader.c
@@ -188,7 +188,7 @@ static int __qcom_mdt_load(struct device *dev, const struct firmware *fw,
if (reloc_base)
*reloc_base = mem_reloc;
-
+ ret = 0;
out:
kfree(fw_name);
--
2.17.1
Powered by blists - more mailing lists