ASoC: audio-graph-scu-card: remove error check which never happen

Current driver is checking situation that can not happen.
This patch removes over-kill check

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2018-11-06 04:36:55 +00:00 committed by Mark Brown
parent 1a115f3a54
commit 5049a6e731
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 8 deletions

View File

@ -250,9 +250,6 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv)
of_node_put(codec_port);
if (codec) {
if (!codec_port)
continue;
if (codec_port_old == codec_port)
continue;
@ -308,11 +305,7 @@ static int asoc_graph_get_dais_count(struct device *dev)
of_node_put(codec_ep);
of_node_put(codec_port);
if (cpu_ep)
count++;
if (!codec_port)
continue;
count++;
if (codec_port_old == codec_port)
continue;