Browse Source

Merge "dsp: Remove redundant payload size check"

qctecmdr 6 years ago
parent
commit
54d99a5cee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dsp/q6asm.c

+ 2 - 2
dsp/q6asm.c

@@ -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;