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 <truong@codeaurora.org>
This commit is contained in:
parent
8a8abceb69
commit
e218ba7d2e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue