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>
This commit is contained in:
parent
5771a8c088
commit
89b13706c4
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue