[Sound-open-firmware] [PATCH] Fix pointer of struct dma_trace_data.

yan.wang at linux.intel.com yan.wang at linux.intel.com
Thu Mar 1 04:59:56 CET 2018


From: Yan Wang <yan.wang at linux.intel.com>

Liam's previous patch modify the structure variable from instance to
pointer. So it is unnecessary to use "&".
This parameter of parse_page_descriptors() is "void*", so complier
doesn't find this error.

Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
---
 src/ipc/intel-ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ipc/intel-ipc.c b/src/ipc/intel-ipc.c
index 5e14653..04e8c1b 100644
--- a/src/ipc/intel-ipc.c
+++ b/src/ipc/intel-ipc.c
@@ -619,7 +619,7 @@ static int ipc_dma_trace_config(uint32_t header)
 
 	/* Parse host tables */
 	err = parse_page_descriptors(iipc, &params->buffer,
-		&_ipc->dmat, 1);
+		_ipc->dmat, 1);
 	if (err < 0) {
 		trace_ipc_error("ePP");
 		goto error;
-- 
2.14.3



More information about the Sound-open-firmware mailing list