mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: apply vos_assert in vostimer APIs, in uninitialized case
qcacld-2.0 to qcacld-3.0 propagation As a debug enhancement, call vos_assert in vos timer APIs, when API fails because of unintialization. Change-Id: Ib7d4c7995a60b23413eead4603b38ff89ff48715 CRs-Fixed: 810282
This commit is contained in:
parent
d11e84cc72
commit
7a003f67bd
1 changed files with 2 additions and 4 deletions
|
|
@ -655,8 +655,7 @@ CDF_STATUS cdf_mc_timer_start(cdf_mc_timer_t *timer, uint32_t expirationTime)
|
|||
if (LINUX_TIMER_COOKIE != timer->platformInfo.cookie) {
|
||||
CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Cannot start uninitialized timer", __func__);
|
||||
if (LINUX_INVALID_TIMER_COOKIE != timer->platformInfo.cookie)
|
||||
CDF_ASSERT(0);
|
||||
CDF_ASSERT(0);
|
||||
|
||||
return CDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
|
@ -738,8 +737,7 @@ CDF_STATUS cdf_mc_timer_stop(cdf_mc_timer_t *timer)
|
|||
if (LINUX_TIMER_COOKIE != timer->platformInfo.cookie) {
|
||||
CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Cannot stop uninitialized timer", __func__);
|
||||
if (LINUX_INVALID_TIMER_COOKIE != timer->platformInfo.cookie)
|
||||
CDF_ASSERT(0);
|
||||
CDF_ASSERT(0);
|
||||
|
||||
return CDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue