asoc: codecs: rt5640: Remove unused variables.
Sami Liedes [Mon, 6 May 2013 16:09:25 +0000 (19:09 +0300)]
Remove the unused val and mask variables in
rt5640_set_dmic[12]_event() functions to silence compiler warnings.

Change-Id: Ic102e3054c24ed56c43ce0d7a0066a8e0de94833
Signed-off-by: Sami Liedes <sliedes@nvidia.com>
Reviewed-on: http://git-master/r/225731
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

sound/soc/codecs/rt5640.c

index 46195a2..b2ccd05 100644 (file)
@@ -1532,7 +1532,6 @@ static int rt5640_set_dmic1_event(struct snd_soc_dapm_widget *w,
        struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = w->codec;
-       unsigned int val, mask;
        struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
        mutex_lock(&rt5640->lock);
        CHECK_I2C_SHUTDOWN(rt5640, codec)
@@ -1562,7 +1561,6 @@ static int rt5640_set_dmic2_event(struct snd_soc_dapm_widget *w,
        struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = w->codec;
-       unsigned int val, mask;
        struct rt5640_priv *rt5640 = snd_soc_codec_get_drvdata(codec);
        mutex_lock(&rt5640->lock);
        CHECK_I2C_SHUTDOWN(rt5640, codec)