From a9a2c8c44b30f15596d5b1a0982d13b0c79911f4 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 13 Jul 2026 17:04:04 +0100 Subject: [PATCH] ASoC: simple-card: Fix clang build Jumping over the allocation of the link_info for a missing dev breaks the build: /tmp/next/build/sound/soc/generic/simple-card.c:676:3: error: cannot jump from this goto statement to its label 676 | goto end; | ^ /tmp/next/build/sound/soc/generic/simple-card.c:679:20: note: jump bypasses initialization of variable with __attribute__((cleanup)) 679 | struct link_info *li __free(kfree) = kzalloc_obj(*li); | ^ Fixes: 7f20b9b05b3a ("ASoC: simple-card: merge extra method into simple_parse_of()") Link: https://patch.msgid.link/20260713-asoc-fix-simple-card-build-v1-1-671ad44ad1a0@kernel.org Signed-off-by: Mark Brown --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index abfbc9fd7c6d..6e98e973e525 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -673,7 +673,7 @@ static int simple_parse_of(struct simple_util_priv *priv) int ret = -EINVAL; if (!dev) - goto end; + return simple_ret(priv, ret); ret = -ENOMEM; struct link_info *li __free(kfree) = kzalloc_obj(*li);