summaryrefslogtreecommitdiff
path: root/Documentation/sparc
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-03-22 11:48:40 +0900
committerMark Brown <broonie@kernel.org>2021-03-25 13:58:53 +0000
commit4a50724eb0ba96b849f4a0c8da28b2b796859f9e (patch)
tree42c1f570ac59af15e2413ec61203b82f71a7e5b3 /Documentation/sparc
parent4da40cb9955c63c3aca02be267faea4abbd2c649 (diff)
ASoC: soc.h: fixup return timing for snd_soc_fixup_dai_links_platform_name()
Current snd_soc_fixup_dai_links_platform_name() creates name first (A), and checks setup target pointer (B), and set it (C). We should check target pointer first IMO. This patch exchange the order to (B) -> (A) -> (C). int snd_soc_fixup_dai_links_platform_name(...) { ... /* set platform name for each dailink */ for_each_card_prelinks(card, i, dai_link) { (A) name = devm_kstrdup(...); if (!name) return -ENOMEM; (B) if (!dai_link->platforms) return -EINVAL; /* only single platform is supported for now */ (C) dai_link->platforms->name = name; } return 0; } Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/8735wnaoon.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/sparc')
0 files changed, 0 insertions, 0 deletions