From e218ba7d2ee1332c06cc7aab421609fb38ea3f67 Mon Sep 17 00:00:00 2001 From: Tony Truong Date: Tue, 13 Sep 2016 18:06:13 -0700 Subject: msm: pcie: initialize var in GPIO init function It is possible a variable will be accessed before it is ever initialized. Properly initialize this variable when it is declared. Change-Id: Id1523786f1c87449ed3943f1726766dad6a4ade2 Signed-off-by: Tony Truong --- drivers/pci/host/pci-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/pci/host') diff --git a/drivers/pci/host/pci-msm.c b/drivers/pci/host/pci-msm.c index 3f186137e730..2909443a62ca 100644 --- a/drivers/pci/host/pci-msm.c +++ b/drivers/pci/host/pci-msm.c @@ -3282,7 +3282,7 @@ static struct pci_ops msm_pcie_ops = { static int msm_pcie_gpio_init(struct msm_pcie_dev_t *dev) { - int rc, i; + int rc = 0, i; struct msm_pcie_gpio_info_t *info; PCIE_DBG(dev, "RC%d\n", dev->rc_idx); -- cgit v1.2.3