@@ -1127,15 +1127,13 @@ static int sof_connect_dai_widget(struct snd_soc_component *scomp,
switch (w->id) {
case snd_soc_dapm_dai_out:
rtd->cpu_dai->capture_widget = w;
- if (dai)
- dai->name = rtd->dai_link->name;
+ dai->name = rtd->dai_link->name;
dev_dbg(sdev->dev, "tplg: connected widget %s -> DAI link %s\n",
w->name, rtd->dai_link->name);
break;
case snd_soc_dapm_dai_in:
rtd->cpu_dai->playback_widget = w;
- if (dai)
- dai->name = rtd->dai_link->name;
+ dai->name = rtd->dai_link->name;
dev_dbg(sdev->dev, "tplg: connected widget %s -> DAI link %s\n",
w->name, rtd->dai_link->name);
break;