[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ff40e45ed02be9e1a7144af259509689@208suo.com>
Date: Wed, 19 Jul 2023 10:10:05 +0800
From: wuyonggang001@...suo.com
To: perex@...ex.cz, tiwai@...e.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] ASoC: SOF: ipc4-topology: Fix application of sizeof to
pointer
Sizeof is being applied to the pointer ptr, not the integer it points
to.
Eliminate the following error(s):
./sound/soc/sof/ipc4-topology.c:221:29-35: ERROR: application of sizeof
to pointer
Signed-off-by: Yonggang Wu <wuyonggang001@...suo.com>
---
sound/soc/sof/ipc4-topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sof/ipc4-topology.c
b/sound/soc/sof/ipc4-topology.c
index a4e1a70b607d..2dbe87dbd239 100644
--- a/sound/soc/sof/ipc4-topology.c
+++ b/sound/soc/sof/ipc4-topology.c
@@ -218,7 +218,7 @@ static int sof_ipc4_get_audio_fmt(struct
snd_soc_component *scomp,
ret = sof_update_ipc_object(scomp, available_fmt,
SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples,
- swidget->num_tuples, sizeof(available_fmt), 1);
+ swidget->num_tuples, sizeof(*available_fmt), 1);
if (ret) {
dev_err(scomp->dev, "Failed to parse audio format token
count\n");
return ret;
Powered by blists - more mailing lists