From: Stephen Warren Date: Mon, 31 Jan 2011 18:00:17 +0000 (-0700) Subject: ASoC: Tegra: Harmony: Remove redundant !! X-Git-Tag: MMI-PSA29.97-13-9~16612^2~1226^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9eabc3deedccf545bd73fd72b3af2759d44f6f3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Tegra: Harmony: Remove redundant !! gpio_set_value* should accept logic values not just 0 or 1. The WM8903 GPIO driver has been fixed to work this way, so remove the redundant !! previously required when it didn't accept values >1. Signed-off-by: Stephen Warren Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/harmony.c index d1faa63af034..11e2cb825664 100644 --- a/sound/soc/tegra/harmony.c +++ b/sound/soc/tegra/harmony.c @@ -132,7 +132,7 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w, struct harmony_audio_platform_data *pdata = harmony->pdata; gpio_set_value_cansleep(pdata->gpio_spkr_en, - !!SND_SOC_DAPM_EVENT_ON(event)); + SND_SOC_DAPM_EVENT_ON(event)); return 0; }