summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/ml26124.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-09 16:24:40 +0800
committerMark Brown <broonie@kernel.org>2019-08-09 13:24:47 +0100
commit0fd70e22a0ffebd13028bf2c7da6b747070475bf (patch)
treecb93338ed2f015daa08b061a2d8234cb63ee204b /sound/soc/codecs/ml26124.c
parentbc8d9f737fc01cce913f1cc215b7e66f01697e52 (diff)
downloadlwn-0fd70e22a0ffebd13028bf2c7da6b747070475bf.tar.gz
lwn-0fd70e22a0ffebd13028bf2c7da6b747070475bf.zip
ASoC: ml26124: remove unused variable 'ngth'
In file included from ./include/sound/tlv.h:10:0, from sound/soc/codecs/ml26124.c:19: sound/soc/codecs/ml26124.c:59:35: warning: ngth defined but not used [-Wunused-const-variable=] static const DECLARE_TLV_DB_SCALE(ngth, -7650, 150, 0); ^ ./include/uapi/sound/tlv.h:64:15: note: in definition of macro SNDRV_CTL_TLVD_DECLARE_DB_SCALE unsigned int name[] = { \ ^~~~ sound/soc/codecs/ml26124.c:59:14: note: in expansion of macro DECLARE_TLV_DB_SCALE static const DECLARE_TLV_DB_SCALE(ngth, -7650, 150, 0); ^~~~~~~~~~~~~~~~~~~~ It is never used, so can be removed. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190809082440.67412-1-yuehaibing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ml26124.c')
-rw-r--r--sound/soc/codecs/ml26124.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/ml26124.c b/sound/soc/codecs/ml26124.c
index 3abd27893ce6..55823bc95d06 100644
--- a/sound/soc/codecs/ml26124.c
+++ b/sound/soc/codecs/ml26124.c
@@ -56,7 +56,6 @@ static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0);
static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
-static const DECLARE_TLV_DB_SCALE(ngth, -7650, 150, 0);
static const char * const ml26124_companding[] = {"16bit PCM", "u-law",
"A-law"};