projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5771a8c
)
ASoC: sta32x: Remove unneeded gpiod NULL check
author
Fabio Estevam
<fabio.estevam@nxp.com>
Sun, 16 Jul 2017 21:11:13 +0000
(18:11 -0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 17 Jul 2017 14:43:55 +0000
(15:43 +0100)
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>
sound/soc/codecs/sta32x.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/sta32x.c
b/sound/soc/codecs/sta32x.c
index 0790ae8530d96dba77d25165aefb8f5f2ad88779..5b888476d9ff110b26cc6d42f1a7c808f05027ea 100644
(file)
--- 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,
msleep(300);
sta32x_watchdog_stop(sta32x);
- if (sta32x->gpiod_nreset)
- gpiod_set_value(sta32x->gpiod_nreset, 0);
+ gpiod_set_value(sta32x->gpiod_nreset, 0);
regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies),
sta32x->supplies);