projects
/
GitHub
/
LineageOS
/
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: cs35l34: Remove unneeded gpiod NULL check
author
Fabio Estevam
<fabio.estevam@nxp.com>
Sun, 16 Jul 2017 21:11:10 +0000
(18:11 -0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 17 Jul 2017 14:42:49 +0000
(15:42 +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/cs35l34.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs35l34.c
b/sound/soc/codecs/cs35l34.c
index 0a747c66cc6ccc593036775f51ae4eaa050cc850..dade899b38dc7adc9628f2ab4c4c218cb98a7725 100644
(file)
--- a/
sound/soc/codecs/cs35l34.c
+++ b/
sound/soc/codecs/cs35l34.c
@@
-1138,8
+1138,7
@@
static int cs35l34_i2c_remove(struct i2c_client *client)
snd_soc_unregister_codec(&client->dev);
- if (cs35l34->reset_gpio)
- gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);
+ gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);
pm_runtime_disable(&client->dev);
regulator_bulk_disable(cs35l34->num_core_supplies,