ASoC: qcom: q6asm-dai: use pointer type with kzalloc_obj()

Use kzalloc_obj(*prtd) instead of explicitly naming the structure type.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20260518092347.3446946-6-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Srinivas Kandagatla 2026-05-18 09:23:47 +00:00 committed by Mark Brown
parent c92d880cde
commit 909595c288
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -383,7 +383,7 @@ static int q6asm_dai_open(struct snd_soc_component *component,
return -EINVAL;
}
prtd = kzalloc_obj(struct q6asm_dai_rtd);
prtd = kzalloc_obj(*prtd);
if (prtd == NULL)
return -ENOMEM;