linux/sound/soc/generic
Arnd Bergmann 2b320e0464
ASoC: simple-card-utils: fix build warning without CONFIG_OF
When CONFIG_OF is disabled, of_graph_parse_endpoint() does not
initialize 'info', and gcc can see that:

sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_card_parse_graph_dai':
sound/soc/generic/simple-card-utils.c:284:13: error: 'info.port' may be used uninitialized in this function [-Werror=maybe-uninitialized]

It's probably best to check the return code anyway, and that also
takes care of the warning.

Fixes: b6f3fc005a ("ASoC: simple-card-utils: fixup asoc_simple_card_get_dai_id() counting")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-12-11 01:08:51 +00:00
..
audio-graph-card.c ASoC: audio-graph-card: use cpu/codec pointer on graph_dai_props 2018-12-04 16:29:34 +00:00
audio-graph-scu-card.c ASoC: audio-graph-scu-card: care multi DPCM codec_conf 2018-12-04 16:29:19 +00:00
Kconfig ASoC: audio-graph-card: tidyup typo SND_AUDIO_GRAPH_CARD 2018-11-23 14:01:55 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
simple-card-utils.c ASoC: simple-card-utils: fix build warning without CONFIG_OF 2018-12-11 01:08:51 +00:00
simple-card.c ASoC: simple_card_utils: remove "option" from asoc_simple_card_of_parse_routing() 2018-11-21 13:28:49 +00:00
simple-scu-card.c ASoC: Use of_node_name_eq for node name comparisons 2018-12-06 12:56:39 +00:00