From: Fabio Estevam Date: Sun, 16 Jul 2017 21:11:10 +0000 (-0300) Subject: ASoC: cs35l34: Remove unneeded gpiod NULL check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db3be255a101da11f67c0f3053b750e767eb10fe;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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) 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,