diff options
| author | Yue Ma <yuem@codeaurora.org> | 2017-09-19 10:54:31 -0700 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-09-22 11:02:57 -0700 |
| commit | 1085db8c31efe90fe8d6b3c601625f7b90ac338d (patch) | |
| tree | 9f3c2f82b0b612ad218cef3500f7449bd3042319 | |
| parent | b9190328d00165d153f9b71faeae1858e8ed9c20 (diff) | |
qcacld-3.0: Fix uninitialized variable warning
Initialize the structure before directly accessing it to avoid
potential issues in ol_configure_target.
Change-Id: I97b91cc1100acf0b6f1a0fa95839b9c99f706386
CRs-fixed: 2111295
| -rw-r--r-- | core/bmi/src/ol_fw.c | 2 |
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); |
