Re: [PATCH] ASoc: tpa6130a2: Remove unnecessary variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 04 January 2010 14:30:03 Koskinen Ilkka (Nokia-D/Tampere) wrote:
> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@xxxxxxxxx>
> ---
>  sound/soc/codecs/tpa6130a2.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> 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 */

Yes, I think this is a leftover from some earlier code that I had.
Good catch!

Acked-by: Peter Ujfalusi <peter.ujfalusi@xxxxxxxxx>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux