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

Commit 404f0a2d authored by Channagoud Kadabi's avatar Channagoud Kadabi Committed by Runmin Wang
Browse files

soc: qcom: llcc: Initialize index before using it



Index to find the phandle from client device node is being used
uninitialized and results into failure parsing the phandle argument.

Change-Id: I70f941afd99ce14153c5e29cf00e2c6fec726634
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 22aebb6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ static struct llcc_slice_desc *llcc_slice_get_entry(struct device *dev, int n)
struct llcc_slice_desc *llcc_slice_getd(struct device *dev, const char *name)
{
	struct device_node *np = dev->of_node;
	int index;
	int index = 0;
	const char *slice_name;
	struct property *prop;