]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: topology: No need to assign core ID if token parsing failed
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 7 Nov 2022 09:04:33 +0000 (11:04 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Nov 2022 13:58:02 +0000 (13:58 +0000)
commit2e430d45d0e6fed9c7d1acfb8b029b9798383193
tree3b447de1e5201d038f6594d7e295744554ac3625
parent78c142b3835bd414fbe86f755fa56fb3eb4a69eb
ASoC: SOF: topology: No need to assign core ID if token parsing failed

Move the return value check before attempting to assign the core ID to the
swidget since we are going to fail the sof_widget_ready() and free up
swidget anyways.

Fixes: f528b73dbe7d ("ASoC: SOF: topology: Make DAI widget parsing IPC agnostic")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20221107090433.5146-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c