ASoC: tas2781: fix clang build error for goto bypassing cleanup variable
authorShenghao Ding <shenghao-ding@ti.com>
Fri, 7 Aug 2026 00:03:04 +0000 (08:03 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 Aug 2026 12:27:44 +0000 (13:27 +0100)
commit566fec6a33075a0ea5c441c26571221f17f4ed98
tree002db1ae438a40760cbf45e15b62b45903a0a785
parentdb2ddb87143519e20a95aa36c60b36107b736a58
ASoC: tas2781: fix clang build error for goto bypassing cleanup variable

Remove invalid goto exit paths that jump across guard(mutex) cleanup
variable initialization, replace them with direct kfree(src) and return,
to fix the s390 clang build error in acoustic_ctl_write().

Fixes: d75d38dc4604 ("ASoC: tas2781: Add a debugfs node for acoustic tuning")
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20260807000304.826-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2781-i2c.c