未验证 提交 5049a6e7 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

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: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1a115f3a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册