diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-28 23:47:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-29 14:23:16 +0100 |
commit | be16a0f0dc8fab8e25d9cdbeb4f8f28afc9186d2 (patch) | |
tree | b1bc23f8eb4b5474b9fedb371e2dbe8cd437afd8 /sound/soc/codecs | |
parent | eda12425b266b85a8c4b8f4f25ca8afc7e36070f (diff) |
ASoC: component: suppress uninitialized-variable warning
Old versions of gcc (tested on gcc-4.8) produce a warning for
correct code:
sound/soc/soc-compress.c: In function 'soc_compr_open':
sound/soc/soc-compress.c:75:28: error: 'component' is used uninitialized in this function [-Werror=uninitialized]
struct snd_soc_component *component, *save = NULL;
Change the for_each_rtd_components() macro to ensure 'component'
gets initialized to a value the compiler does not complain about.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200428214754.3925368-1-arnd@arndb.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
0 files changed, 0 insertions, 0 deletions