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

Commit d5f41ba7 authored by Vignesh Kulothungan's avatar Vignesh Kulothungan Committed by Gerrit - the friendly Code Review server
Browse files

dsp: Remove redundant payload size check



Due to redundant payload checks, ASM
get param requests in RTAC mode fail with timeout
errors. Fix this by removing the redundant
payload checks.

CRs-Fixed: 2372302
Change-Id: If08ec942f3530e132b5980da579ea1766d21c52b
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent b4c9798b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1952,8 +1952,8 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
	    (data->opcode != ASM_DATA_EVENT_EOS) &&
	    (data->opcode != ASM_SESSION_EVENTX_OVERFLOW) &&
	    (data->opcode != ASM_SESSION_EVENT_RX_UNDERFLOW)) {
		if (payload == NULL || (data->payload_size < (2 * sizeof(uint32_t)))) {
			pr_err("%s: payload is null or invalid size[%d]\n", __func__, data->payload_size);
		if (payload == NULL) {
			pr_err("%s: payload is null\n", __func__);
			spin_unlock_irqrestore(
				&(session[session_id].session_lock), flags);
			return -EINVAL;