mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
qcacmn: Fix compilation error for modulo operator
In some of the targets modulo operator assembly API's are not defined causing compilation error. To avoid this use qdf based API's for modulo operations. Change-Id: Ibc69b69aa38cadff5daa8dee8b65ceaacfe997b7 CRs-Fixed: 2940281
This commit is contained in:
parent
eb13f6023a
commit
8a1d36cd5e
1 changed files with 1 additions and 1 deletions
|
|
@ -1543,7 +1543,7 @@ dp_tx_hw_desc_update_evt(uint8_t *hal_tx_desc_cached,
|
|||
idx = ++soc->tx_hw_desc_history->index;
|
||||
if (idx == DP_TX_HW_DESC_HIST_MAX)
|
||||
soc->tx_hw_desc_history->index = 0;
|
||||
idx = (idx % DP_TX_HW_DESC_HIST_MAX);
|
||||
idx = qdf_do_div_rem(idx, DP_TX_HW_DESC_HIST_MAX);
|
||||
|
||||
evt = &soc->tx_hw_desc_history->entry[idx];
|
||||
qdf_mem_copy(evt->tcl_desc, hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES);
|
||||
|
|
|
|||
Loading…
Reference in a new issue