mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "dsp: Avoid excessive list iterations"
This commit is contained in:
commit
d36e5ef530
1 changed files with 3 additions and 1 deletions
|
|
@ -8306,8 +8306,10 @@ static int __q6asm_read(struct audio_client *ac, bool is_custom_len_reqd,
|
|||
list_for_each_safe(ptr, next, &ac->port[OUT].mem_map_handle) {
|
||||
buf_node = list_entry(ptr, struct asm_buffer_node,
|
||||
list);
|
||||
if (buf_node->buf_phys_addr == ab->phys)
|
||||
if (buf_node->buf_phys_addr == ab->phys) {
|
||||
read.mem_map_handle = buf_node->mmap_hdl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
dev_vdbg(ac->dev, "memory_map handle in q6asm_read: [%0x]:",
|
||||
read.mem_map_handle);
|
||||
|
|
|
|||
Loading…
Reference in a new issue