]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: qcom: q6asm-dai: use pointer type with kzalloc_obj()
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Mon, 18 May 2026 09:23:47 +0000 (09:23 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 May 2026 12:46:47 +0000 (13:46 +0100)
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>
sound/soc/qcom/qdsp6/q6asm-dai.c

index 5774c26111974824b3308001ce7b195bbb3c6a18..4f09fdd409058475589a0fa9a7629d3fef029e0b 100644 (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;