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)
commit3d59eaef49ca2db581156a7b77c9afc0546eefc0
tree3b447de1e5201d038f6594d7e295744554ac3625
parent314d34fe7f0a5836cb0472950c1f17744b4efde8
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: 909dadf21aae ("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