Skip to content

Commit

Permalink
ASoC: wm8804: Remove unneeded gpiod NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Jul 17, 2017
1 parent 5771a8c commit 89b1370
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/soc/codecs/wm8804.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 89b1370

Please sign in to comment.