diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-07-16 17:11:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-17 10:43:55 -0400 |
commit | c5efe232e09ef29cc2f9e8333a49dd8891366c22 (patch) | |
tree | a0586cd183049b2e0840b8a402132febfe2269a1 | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) |
ASoC: sta32x: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to
duplicate the check in the driver.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/sta32x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index 0790ae8530d9..5b888476d9ff 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c | |||
@@ -847,8 +847,7 @@ static int sta32x_set_bias_level(struct snd_soc_codec *codec, | |||
847 | msleep(300); | 847 | msleep(300); |
848 | sta32x_watchdog_stop(sta32x); | 848 | sta32x_watchdog_stop(sta32x); |
849 | 849 | ||
850 | if (sta32x->gpiod_nreset) | 850 | gpiod_set_value(sta32x->gpiod_nreset, 0); |
851 | gpiod_set_value(sta32x->gpiod_nreset, 0); | ||
852 | 851 | ||
853 | regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), | 852 | regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), |
854 | sta32x->supplies); | 853 | sta32x->supplies); |