summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Huang <wilhuang@codeaurora.org>2017-09-22 18:07:30 +0800
committerWill Huang <wilhuang@codeaurora.org>2017-09-25 10:52:08 +0800
commit5ac1eb91c1aedd6f761340f6907745518d3b1fec (patch)
tree6743101b863a77ac4fc46db7473cd1a6fe42002b
parentf81cb683bd78b9aa81492a19f53fc3a1236b7cea (diff)
qcacld-3.0: Init cap before use it
In function ol_configure_target cap is used uninitialized when call pld_get_platform_cap fail, although pld_get_bus_type and hif_get_bus_type return same bus type, so actually it has no issue here, but it look not clear, init it explicitly. Change-Id: I001956521c62c14b3537b399bbca1791b274a4c7 CRs-Fixed: 2115553
-rw-r--r--core/bmi/src/ol_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bmi/src/ol_fw.c b/core/bmi/src/ol_fw.c
index d55d5ba68f43..a17e17d6672e 100644
--- a/core/bmi/src/ol_fw.c
+++ b/core/bmi/src/ol_fw.c
@@ -735,7 +735,7 @@ static QDF_STATUS ol_set_lpass_support(struct ol_context *ol_ctx)
QDF_STATUS ol_configure_target(struct ol_context *ol_ctx)
{
uint32_t param;
- struct pld_platform_cap cap;
+ struct pld_platform_cap cap = {0};
int ret;
struct hif_opaque_softc *scn = ol_ctx->scn;
struct hif_target_info *tgt_info = hif_get_target_info_handle(scn);