From: Ilkka Koskinen Date: Mon, 4 Jan 2010 12:30:03 +0000 (+0200) Subject: ASoc: tpa6130a2: Remove unnecessary variable X-Git-Tag: v3.0~4226^2~7^2~226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a126fd5691e6cd680758b72e6ea288bb83b9deb6;p=platform%2Fkernel%2Flinux-amlogic.git ASoc: tpa6130a2: Remove unnecessary variable Signed-off-by: Ilkka Koskinen Acked-by: Peter Ujfalusi Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c index 0eb33d4..8e98ccf 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 */