diff options
author | lihual <lihual@codeaurora.org> | 2018-04-02 15:18:54 +0800 |
---|---|---|
committer | nshrivas <nshrivas@codeaurora.org> | 2018-04-09 21:33:47 -0700 |
commit | 8b9daf255c91cfd5f6978b274caa72e674233754 (patch) | |
tree | f910d9219a8f0b99e1c7859f8e51bb6d4df003d0 /core/pld | |
parent | a581a56a53e07484a798dc6f19d9ecc734a6382a (diff) | |
download | qcacld-8b9daf255c91cfd5f6978b274caa72e674233754.tar.gz |
qcacld-3.0: Init local variable cnss_info before using it
Initialize cnss_info in pld_pcie_get_soc_info()
before using it.
CRs-Fixed: 2205420
Change-Id: I4b34fc64ca50c031faa79fd1e272bae24cc0f766
Diffstat (limited to 'core/pld')
-rw-r--r-- | core/pld/src/pld_pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pld/src/pld_pcie.c b/core/pld/src/pld_pcie.c index 7e108f7771..10b0e198df 100644 --- a/core/pld/src/pld_pcie.c +++ b/core/pld/src/pld_pcie.c @@ -698,7 +698,7 @@ int pld_pcie_get_platform_cap(struct device *dev, struct pld_platform_cap *cap) int pld_pcie_get_soc_info(struct device *dev, struct pld_soc_info *info) { int ret = 0; - struct cnss_soc_info cnss_info; + struct cnss_soc_info cnss_info = {0}; if (info == NULL) return -ENODEV; |