summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHouston Hoffman <hhoffman@codeaurora.org>2017-04-13 19:00:42 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-19 16:14:05 -0700
commitdec7dc3f7e2e148e911a12eaa0b4b9d2a91773c5 (patch)
treef650d1a576d916c79f3b1feff4c5b4dad14bbebd
parent0bfb52ed9cd65fddefe12a46a9bae942f5f9fe37 (diff)
qcacmn: Reduce complexity in hif_ce_bus_late_resume
Reduce complexity to eliminate false positive "variable not initialized" warning when spinlock profiling feature is enabled. Change-Id: I93b17d7bc3c2202bc46f3e486700ad25c8c07ad8 CRs-Fixed: 2034020
-rw-r--r--hif/src/ce/ce_main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c
index 76b97831104f..daad5de69a08 100644
--- a/hif/src/ce/ce_main.c
+++ b/hif/src/ce/ce_main.c
@@ -622,7 +622,6 @@ int hif_ce_bus_late_resume(struct hif_softc *scn)
int ce_id;
struct CE_state *ce_state;
int write_index;
- bool index_updated;
for (ce_id = 0; ce_id < scn->ce_count; ce_id++) {
ce_state = scn->ce_id_to_state[ce_id];
@@ -632,19 +631,14 @@ int hif_ce_bus_late_resume(struct hif_softc *scn)
CE_SRC_RING_WRITE_IDX_SET(scn, ce_state->ctrl_addr,
write_index);
ce_state->state = CE_RUNNING;
- index_updated = true;
- } else {
- index_updated = false;
+ hif_record_ce_desc_event(scn, ce_id,
+ RESUME_WRITE_INDEX_UPDATE,
+ NULL, NULL, write_index);
}
if (ce_state->state == CE_PAUSED)
ce_state->state = CE_RUNNING;
qdf_spin_unlock_bh(&ce_state->ce_index_lock);
-
- if (index_updated)
- hif_record_ce_desc_event(scn, ce_id,
- RESUME_WRITE_INDEX_UPDATE,
- NULL, NULL, write_index);
}
return 0;