提交 89b13706 编写于 作者: F Fabio Estevam 提交者: Mark Brown

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: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 5771a8c0
...@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap) ...@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)
return ret; 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); ret = regmap_read(regmap, WM8804_RST_DEVID1, &id1);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册