]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ti: omap-mcbsp-st: Remove set, but unused variable 'w'
authorLee Jones <lee.jones@linaro.org>
Tue, 7 Jul 2020 19:06:08 +0000 (14:06 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jul 2020 20:56:46 +0000 (21:56 +0100)
commit92a686a22c2db507262c04ff8d2392b6dda73c4c
tree036853dab67a008e793d41287ecaac3236e7d017
parent116d85407ce4fa8100f652dbad2c53b8ac2cb689
ASoC: ti: omap-mcbsp-st: Remove set, but unused variable 'w'

Looks like 'w' has remained unchecked since the driver's inception.

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

 sound/soc/ti/omap-mcbsp-st.c: In function ‘omap_mcbsp_st_chgain’:
 sound/soc/ti/omap-mcbsp-st.c:145:6: warning: variable ‘w’ set but not used [-Wunused-but-set-variable]

Peter suggested that the whole read can be removed, so that's
been done too.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
Cc: Samuel Ortiz <samuel.ortiz@nokia.com>
Cc: linux-omap@vger.kernel.org
Link: https://lore.kernel.org/r/20200707190612.97799-10-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap-mcbsp-st.c