summaryrefslogtreecommitdiff
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-11-06 07:36:55 +0300
committerMark Brown <broonie@kernel.org>2018-11-06 20:37:50 +0300
commit5049a6e7316cdbf4370d5479e9628d8f5e906635 (patch)
treec51ed8a0c7998bad36bdedf029b79e8bb1512d5e /sound/soc/generic
parent1a115f3a5418459aabc10628eb25dff1bae64bca (diff)
downloadlinux-5049a6e7316cdbf4370d5479e9628d8f5e906635.tar.xz
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>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r--sound/soc/generic/audio-graph-scu-card.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index ba7b0cf028b7..2ba35bdd3b38 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -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;