Applied "ASoC: cs35l34: Remove unneeded gpiod NULL check" to the asoc tree

Message ID E1dX8Wx-0004wj-Q0@debutante
State Accepted
Commit db3be255a101da11f67c0f3053b750e767eb10fe
Headers show

Commit Message

Mark Brown July 17, 2017, 4:05 p.m.
The patch

   ASoC: cs35l34: Remove unneeded gpiod NULL check

has been applied to the asoc tree at


All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.


From db3be255a101da11f67c0f3053b750e767eb10fe Mon Sep 17 00:00:00 2001
From: Fabio Estevam <>

Date: Sun, 16 Jul 2017 18:11:10 -0300
Subject: [PATCH] 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 <>

 sound/soc/codecs/cs35l34.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


Alsa-devel mailing list


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)
-	if (cs35l34->reset_gpio)
-		gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);
+	gpiod_set_value_cansleep(cs35l34->reset_gpio, 0);