mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
qcacld-3.0: Fix timer destroy warning when RT debugging not enabled
When HDD IPA RT debugging is not enabled, rt_debug_fill_timer is not initialized. However, we still check the timer status to destroy the timer while deinit RT debug. Change-Id: Ic541301843e4d72ad2bc6181728cf18c97d6191a CRs-fixed: 1095787
This commit is contained in:
parent
bf6d5d2116
commit
169de30ce6
1 changed files with 6 additions and 5 deletions
|
|
@ -886,11 +886,6 @@ static void hdd_ipa_uc_rt_debug_deinit(hdd_context_t *hdd_ctx)
|
|||
{
|
||||
struct hdd_ipa_priv *hdd_ipa = (struct hdd_ipa_priv *)hdd_ctx->hdd_ipa;
|
||||
|
||||
if (QDF_TIMER_STATE_STOPPED !=
|
||||
qdf_mc_timer_get_current_state(&hdd_ipa->rt_debug_fill_timer)) {
|
||||
qdf_mc_timer_stop(&hdd_ipa->rt_debug_fill_timer);
|
||||
}
|
||||
qdf_mc_timer_destroy(&hdd_ipa->rt_debug_fill_timer);
|
||||
qdf_mutex_destroy(&hdd_ipa->rt_debug_lock);
|
||||
|
||||
if (!hdd_ipa_is_rt_debugging_enabled(hdd_ctx)) {
|
||||
|
|
@ -899,6 +894,12 @@ static void hdd_ipa_uc_rt_debug_deinit(hdd_context_t *hdd_ctx)
|
|||
return;
|
||||
}
|
||||
|
||||
if (QDF_TIMER_STATE_STOPPED !=
|
||||
qdf_mc_timer_get_current_state(&hdd_ipa->rt_debug_fill_timer)) {
|
||||
qdf_mc_timer_stop(&hdd_ipa->rt_debug_fill_timer);
|
||||
}
|
||||
qdf_mc_timer_destroy(&hdd_ipa->rt_debug_fill_timer);
|
||||
|
||||
if (QDF_TIMER_STATE_STOPPED !=
|
||||
qdf_mc_timer_get_current_state(&hdd_ipa->rt_debug_timer)) {
|
||||
qdf_mc_timer_stop(&hdd_ipa->rt_debug_timer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue