Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: pxa: address unused variable warning

gcc with W=1 reports
sound/soc/pxa/pxa-ssp.c:594:15: warning: variable 'acds' set but not used [-Wunused-but-set-variable]
^
This variable is not used so remove it.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308040619.BEismjFv-lkp@intel.com/
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Link: https://lore.kernel.org/r/20230808132519.637452-1-liaoyu15@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yu Liao and committed by
Mark Brown
a932f45a 87b56172

+1 -7
+1 -7
sound/soc/pxa/pxa-ssp.c
··· 591 591 592 592 if (ret < 0) { 593 593 const struct pxa_ssp_clock_mode *m; 594 - int ssacd, acds; 594 + int ssacd; 595 595 596 596 for (m = pxa_ssp_clock_modes; m->rate; m++) { 597 597 if (m->rate == rate) ··· 600 600 601 601 if (!m->rate) 602 602 return -EINVAL; 603 - 604 - acds = m->acds; 605 - 606 - /* The values in the table are for 16 bits */ 607 - if (width == 32) 608 - acds--; 609 603 610 604 ret = pxa_ssp_set_pll(priv, bclk); 611 605 if (ret < 0)