summaryrefslogtreecommitdiff
path: root/sound/soc/intel/avs
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-10-19 14:03:40 +0300
committerMark Brown <broonie@kernel.org>2022-10-19 14:03:40 +0300
commitaf7b5657e3b535c871a32a2e5c872a0985eaadb7 (patch)
tree8b50fdeb8ecb97f02ab9f9bf23060e86a0d302e9 /sound/soc/intel/avs
parentfd65e099235f99415178484b328cc230ad021d18 (diff)
parent0135ae74b4f16fd08c9bad3b965234961d377fa7 (diff)
downloadlinux-af7b5657e3b535c871a32a2e5c872a0985eaadb7.tar.xz
ASoC: soc-dapm.c random cleanups
Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>: These are random cleanup for soc-dpam.c/h. Basically, these are just cleanup, nothing changed.
Diffstat (limited to 'sound/soc/intel/avs')
-rw-r--r--sound/soc/intel/avs/pcm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/intel/avs/pcm.c b/sound/soc/intel/avs/pcm.c
index 8fe5917b1e26..8037b15cbdcf 100644
--- a/sound/soc/intel/avs/pcm.c
+++ b/sound/soc/intel/avs/pcm.c
@@ -1016,10 +1016,8 @@ static void avs_component_hda_unregister_dais(struct snd_soc_component *componen
if (!strstr(dai->driver->name, name))
continue;
- if (dai->playback_widget)
- snd_soc_dapm_free_widget(dai->playback_widget);
- if (dai->capture_widget)
- snd_soc_dapm_free_widget(dai->capture_widget);
+ snd_soc_dapm_free_widget(dai->playback_widget);
+ snd_soc_dapm_free_widget(dai->capture_widget);
snd_soc_unregister_dai(dai);
}
}