1. 10 10月, 2017 1 次提交
    • A
      ASoC: dapm: add initialization for w_param_text pointer · 667ebc97
      Arnd Bergmann 提交于
      We now allocate the array conditionally, but we always pass
      the pointer to the new snd_soc_dapm_free_kcontrol() function,
      which introduces a warning for the case that it is not
      initialized:
      
      sound/soc/soc-dapm.c: In function 'snd_soc_dapm_new_pcm':
      sound/soc/soc-dapm.c:3940:2: error: 'w_param_text' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      As snd_soc_dapm_free_kcontrol() is global, it doesn't get inlined
      and gcc fails to notice that we don't actually access the array
      in that case, so the code is actually safe. Adding an initialization
      for the array pointer shuts up the warning.
      
      Fixes: 19ad683a ("ASoC: dapm: Avoid creating kcontrol for params")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      667ebc97
  2. 06 10月, 2017 1 次提交
  3. 26 9月, 2017 1 次提交
  4. 20 9月, 2017 2 次提交
  5. 14 9月, 2017 1 次提交
  6. 09 9月, 2017 1 次提交
  7. 04 9月, 2017 4 次提交
  8. 02 9月, 2017 1 次提交
  9. 01 9月, 2017 6 次提交
  10. 31 8月, 2017 14 次提交
  11. 30 8月, 2017 8 次提交