Skip to content
Unverified Commit 3e645a4a authored by Rong Chen's avatar Rong Chen Committed by Mark Brown
Browse files

ASoC: soc-compress: avoid false-positive Wuninitialized warning



gcc-6.5 and earlier show a new warning:

sound/soc/soc-compress.c: In function ‘soc_compr_open’:
sound/soc/soc-compress.c:75:28: warning: ‘component’ is used uninitialized in this function [-Wuninitialized]
  struct snd_soc_component *component, *save = NULL;
                              ^~~~~~~~~

Simplest fix is to initialize it to avoid the warning.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarRong Chen <rong.a.chen@intel.com>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/lkml/202004201540.vYPhhYMs%25lkp@intel.com
Link: https://lore.kernel.org/r/20200424005437.3941-1-rong.a.chen@intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fe57a92c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment