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: Channagoud Kadabi <ckadabi@codeaurora.org>
diff --git a/drivers/soc/qcom/llcc-slice.c b/drivers/soc/qcom/llcc-slice.c
index 6d92f29..dd3e190 100644
--- a/drivers/soc/qcom/llcc-slice.c
+++ b/drivers/soc/qcom/llcc-slice.c
@@ -131,7 +131,7 @@
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;