From: Stephen Warren Date: Tue, 22 May 2012 22:08:53 +0000 (-0600) Subject: ASoC: tegra+wm8903: simplify gpio tests in widget callbacks X-Git-Tag: v3.6-rc1~117^2~4^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14df415a38234aa483219335bc6c1ee899b85e10;p=pandora-kernel.git ASoC: tegra+wm8903: simplify gpio tests in widget callbacks By the time any widget callbacks could be called, if the GPIO ID they will manipulate is valid, it must have already been requested, or the card would have failed to probe or initialize. So, testing for GPIO validity is equivalent to testing whether the GPIO was successfully requested at this point in the code. Making this change will allow later patches to remove the gpio_requested variable. Signed-off-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed