diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-07-16 17:11:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-17 10:42:49 -0400 |
commit | db3be255a101da11f67c0f3053b750e767eb10fe (patch) | |
tree | af6280a44745e62e8e38fcbb9f77c0b62124ca67 | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) |
ASoC: cs35l34: 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/cs35l34.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c index 0a747c66cc6c..dade899b38dc 100644 --- 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) | |||
1138 | 1138 | ||
1139 | snd_soc_unregister_codec(&client->dev); | 1139 | snd_soc_unregister_codec(&client->dev); |
1140 | 1140 | ||
1141 | if (cs35l34->reset_gpio) | 1141 | gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); |
1142 | gpiod_set_value_cansleep(cs35l34->reset_gpio, 0); | ||
1143 | 1142 | ||
1144 | pm_runtime_disable(&client->dev); | 1143 | pm_runtime_disable(&client->dev); |
1145 | regulator_bulk_disable(cs35l34->num_core_supplies, | 1144 | regulator_bulk_disable(cs35l34->num_core_supplies, |