ASoC: SOF: topology: Check w->sname validity once in sof_connect_dai_widget()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 21 Apr 2022 20:18:47 +0000 (15:18 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 22 Apr 2022 23:16:21 +0000 (00:16 +0100)
commit14bdc7b2f9ea0d3f86beed93079ce40a7ead57ac
tree6f22404d1c3ee8924f80ca3ce097de4603cb12cf
parentd516e96bdeca103224de2f84685bf733953b6303
ASoC: SOF: topology: Check w->sname validity once in sof_connect_dai_widget()

The 'w' (struct snd_soc_dapm_widget) is not changing within the function,
there is no reason to check the w->sname more than once as it is not
going to change.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220421201847.1545686-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c