Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89b13706 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5771a8c0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -623,7 +623,6 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)
		return ret;
	}

	if (wm8804->reset)
	gpiod_set_value_cansleep(wm8804->reset, 1);

	ret = regmap_read(regmap, WM8804_RST_DEVID1, &id1);