]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: amd: acp: Fix initialization of ext_intr_stat1 in i2s_irq_handler()
authorNathan Chancellor <nathan@kernel.org>
Mon, 25 Jul 2022 18:05:39 +0000 (11:05 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 26 Jul 2022 12:02:25 +0000 (13:02 +0100)
commitc3f3e67edcbd17dac93e357a4a31d976c539572c
treee982f3218118f6896605b2abf7bff6931a824375
parent1dad32e6d69ba6d938707571e7bf8177549ab66e
ASoC: amd: acp: Fix initialization of ext_intr_stat1 in i2s_irq_handler()

Clang warns:

  ../sound/soc/amd/acp/acp-platform.c:117:19: error: variable 'ext_intr_stat1' is uninitialized when used here [-Werror,-Wuninitialized]
                          if (stream && (ext_intr_stat1 & stream->irq_bit)) {
                                         ^~~~~~~~~~~~~~
  ../sound/soc/amd/acp/acp-platform.c:97:35: note: initialize the variable 'ext_intr_stat1' to silence this warning
          u32 ext_intr_stat, ext_intr_stat1, i;
                                           ^
                                            = 0
  1 error generated.

The variable was not properly renamed, correct it to resolve the
warning.

Fixes: 840916539f54 ("ASoC: amd: acp: Modify local variables name to generic")
Link: https://github.com/ClangBuiltLinux/linux/issues/1675
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220725180539.1315066-1-nathan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-platform.c