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;