projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a115f3
)
ASoC: audio-graph-scu-card: remove error check which never happen
author
Kuninori Morimoto
<
[email protected]
>
Tue, 6 Nov 2018 04:36:55 +0000
(
04:36
+0000)
committer
Mark Brown
<
[email protected]
>
Tue, 6 Nov 2018 17:37:50 +0000
(17:37 +0000)
Current driver is checking situation that can not happen.
This patch removes over-kill check
Signed-off-by: Kuninori Morimoto <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/generic/audio-graph-scu-card.c
patch
|
blob
|
history
diff --git
a/sound/soc/generic/audio-graph-scu-card.c
b/sound/soc/generic/audio-graph-scu-card.c
index ba7b0cf028b7ad7502d1b7ca79a8e002bacc9718..2ba35bdd3b3894dae8e044e8e3adfb97b0606d1e 100644
(file)
--- 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;