Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d36e5ef5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: Avoid excessive list iterations"

parents b09db5c0 96ba1625
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);