Skip to content

Commit 6c1c06c

Browse files
morimotobroonie
authored andcommitted
ASoC: simple-card-utils: remove unnecessary cpu/codec pointer check
Remove cpu/codec pointer check from asoc_simple_card_canonicalize_dailink() This is verbose check, and will be issue if CPU name was created by fmt_single_name() on simple-scu-card.c. see also asoc_simple_card_canonicalize_cpu() Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 1935992 commit 6c1c06c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/soc/generic/simple-card-utils.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_init_dai);
195195

196196
int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link)
197197
{
198-
if (!dai_link->cpu_dai_name || !dai_link->codec_dai_name)
199-
return -EINVAL;
200-
201198
/* Assumes platform == cpu */
202199
if (!dai_link->platform_of_node)
203200
dai_link->platform_of_node = dai_link->cpu_of_node;

0 commit comments

Comments
 (0)