]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: jz4770: Remove defined but never used variable 'mic_boost_tlv'
authorLee Jones <lee.jones@linaro.org>
Tue, 7 Jul 2020 19:06:07 +0000 (14:06 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jul 2020 20:56:46 +0000 (21:56 +0100)
commit116d85407ce4fa8100f652dbad2c53b8ac2cb689
tree0dd38d18fe17159cda24d4641a54689189ca8f56
parent7d74b7c9d6ef8b3fe8ec078058376982ebbe942b
ASoC: codecs: jz4770: Remove defined but never used variable 'mic_boost_tlv'

Fixes the following W=1 kernel build warning(s):

 In file included from include/sound/tlv.h:10,
 from sound/soc/codecs/jz4770.c:19:
 sound/soc/codecs/jz4770.c:306:35: warning: ‘mic_boost_tlv’ defined but not used [-Wunused-const-variable=]
 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0);
 | ^~~~~~~~~~~~~
 include/uapi/sound/tlv.h:64:15: note: in definition of macro ‘SNDRV_CTL_TLVD_DECLARE_DB_SCALE’
 64 | unsigned int name[] = { | ^~~~
 sound/soc/codecs/jz4770.c:306:14: note: in expansion of macro ‘DECLARE_TLV_DB_SCALE’
 306 | static const DECLARE_TLV_DB_SCALE(mic_boost_tlv, 0, 400, 0);
 | ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Cc: ter Huurne <maarten@treewalker.org>
Link: https://lore.kernel.org/r/20200707190612.97799-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/jz4770.c