]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas571x: Fix -Wunused-const-variable
authorNathan Huckleberry <nhuck@google.com>
Wed, 12 Jun 2019 23:25:02 +0000 (16:25 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 13 Jun 2019 18:46:52 +0000 (19:46 +0100)
commitd5da517a80de9e894414496fec30b5417f0512e7
tree6fcd6f058dea59486871ac2623c9e7b0860ebfbc
parent4dcaff4e9ac6cf26bb8b36dc9a80ac58dcb7c1ac
ASoC: tas571x: Fix -Wunused-const-variable

Clang produces the following warning

sound/soc/codecs/tas571x.c:666:38: warning: unused variable
'tas5721_controls' [-Wunused-const-variable]

In the chip struct definition tas5711_controls is used rather than
tac5712_controls. Looks like a typo was made in the original commit.

Since tac5711_controls is identical to tas5721_controls we can just swap
them

Cc: clang-built-linux@googlegroups.com
Link: https://github.com/ClangBuiltLinux/linux/issues/522
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas571x.c