summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorIlkka Koskinen <ilkka.koskinen@nokia.com>2010-01-04 13:30:03 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-04 19:28:23 +0100
commita126fd5691e6cd680758b72e6ea288bb83b9deb6 (patch)
tree82c19168422d93b11a842eff83c84c1faae1d4e1 /sound/soc
parentASoC: Use snprintf() when generating stream names (diff)
downloadlinux-a126fd5691e6cd680758b72e6ea288bb83b9deb6.tar.xz
linux-a126fd5691e6cd680758b72e6ea288bb83b9deb6.zip
ASoc: tpa6130a2: Remove unnecessary variable
Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/tpa6130a2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 0eb33d49942e..8e98ccfab75c 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -267,12 +267,8 @@ static const struct snd_kcontrol_new tpa6130a2_controls[] = {
*/
static void tpa6130a2_channel_enable(u8 channel, int enable)
{
- struct tpa6130a2_data *data;
u8 val;
- BUG_ON(tpa6130a2_client == NULL);
- data = i2c_get_clientdata(tpa6130a2_client);
-
if (enable) {
/* Enable channel */
/* Enable amplifier */