diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-09-17 20:58:02 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-17 09:49:53 -0700 |
commit | 5d5e63af998026f0340d1081fb15ad3c26d80c81 (patch) | |
tree | 4f5cdc80a2611d8f19761a946a0adfc9404053b5 /sound/soc/codecs/wm8903.c | |
parent | 44caf7648064502fd1d37d18443ae92c064ebadd (diff) |
ASoC: Remove return value checking for gpiochip_remove()
gpiochip_remove() will return void eventually.
Thus this patch removes return value checking for gpiochip_remove().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r-- | sound/soc/codecs/wm8903.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index aa0984864e76..c038b3e04398 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -1877,11 +1877,7 @@ static void wm8903_init_gpio(struct wm8903_priv *wm8903) static void wm8903_free_gpio(struct wm8903_priv *wm8903) { - int ret; - - ret = gpiochip_remove(&wm8903->gpio_chip); - if (ret != 0) - dev_err(wm8903->dev, "Failed to remove GPIOs: %d\n", ret); + gpiochip_remove(&wm8903->gpio_chip); } #else static void wm8903_init_gpio(struct wm8903_priv *wm8903) |