]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoc: qcom: q6apm: Use automatic cleanup of kfree()
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Thu, 23 Oct 2025 10:24:38 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 5 Nov 2025 13:28:29 +0000 (13:28 +0000)
commit89cf2223ee7bd83d45c6bef3ac52bedd018f77dd
treecf1602a97a28690e49b9fdc8ab8c38e043ceb5a2
parent55094e55ae36c7566e29ae0473d205dbc9d2f4a8
ASoc: qcom: q6apm: Use automatic cleanup of kfree()

Its common pattern in q6dsp code to allocate temporary buffer
to send gpr/apr packets and free at the function exit.
Now this can be simplified via __free(kfree) mechanism.

No functional changes.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251023102444.88158-15-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6apm.c