]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: amd: acp: refactor sof_card_dai_links_create() function
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 7 Oct 2024 08:53:21 +0000 (14:23 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2024 14:35:46 +0000 (15:35 +0100)
commit0372abfcd81a4db94070d235e1ae3ff928efcab9
tree40908a05df5210ab5c44afac76600d5c0469415f
parent7ce8e4d380d68f34edc96c7efcf95b1476e7f033
ASoC: amd: acp: refactor sof_card_dai_links_create() function

Refactor sof_card_dai_links_create() function by replacing
'sof_ends' and 'sof_dais' structure declarations as
struct asoc_sdw_endpoint *sof_ends __free(kfree) = NULL;
struct asoc_sdw_dailink *sof_dais __free(kfree) = NULL;
Use above declarations to eliminate goto statements usage.

Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20241007085321.3991149-4-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-sdw-sof-mach.c