From: Mark Brown Date: Tue, 24 Jan 2012 19:51:34 +0000 (+0000) Subject: ASoC: wm5100: Fix warnings from recent patches X-Git-Tag: v3.4-rc1~88^2^2~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5509f2f80c711add6bbcec9af7f4bbba2e2cc22b;p=karo-tx-linux.git ASoC: wm5100: Fix warnings from recent patches Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index e40c81eaec38..714256e609c1 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c @@ -1346,7 +1346,7 @@ static int wm5100_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) { struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec); - int ret, i; + int ret; switch (level) { case SND_SOC_BIAS_ON: @@ -2504,7 +2504,6 @@ err_gpio: static int wm5100_remove(struct snd_soc_codec *codec) { struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec); - struct i2c_client *i2c = to_i2c_client(codec->dev); if (wm5100->pdata.hp_pol) { gpio_free(wm5100->pdata.hp_pol);