mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 23:27:42 +07:00
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>
This commit is contained in:
parent
5771a8c088
commit
db3be255a1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user