summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-07-16 23:11:07 +0200
committerMark Brown <broonie@kernel.org>2017-07-17 16:42:14 +0200
commit89b13706c4bb6dae0263014051dd59986376faa5 (patch)
tree1a1100fba8f0fe8ad251c147ecadfa572a9332d9
parentLinux v4.13-rc1 (diff)
downloadlinux-89b13706c4bb6dae0263014051dd59986376faa5.tar.xz
linux-89b13706c4bb6dae0263014051dd59986376faa5.zip
ASoC: wm8804: 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/wm8804.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index af95d648265b..fc69b87443d8 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)
return ret;
}
- if (wm8804->reset)
- gpiod_set_value_cansleep(wm8804->reset, 1);
+ gpiod_set_value_cansleep(wm8804->reset, 1);
ret = regmap_read(regmap, WM8804_RST_DEVID1, &id1);
if (ret < 0) {